Syntax | Name | Alternate names |
---|---|---|
batch files[1]
They are Windows bat files
|
batch | bat |
C++ files | c++ | cpp |
C# files | csharp | c# |
C files | c | C |
fortran files | fortran | - |
html files | html | - |
idl declarations | idl | IDL |
JavaScript files | jscript | js, javascript |
JSON files[2]
JSON files are valid JavaScript files, so the syntax for these files is the same
|
json | - |
Java files | java | - |
Groovy files[3]
Groovy files are presented by default with the same syntax as Java files, though the syntax can be overriden by syntax packs
|
groovy | - |
makefiles | make | - |
php files | php | - |
properties files | props | properties |
Python files | python | py |
SQL files | sql | SQL |
T-SQL files | tsql | T-SQL |
shell scripts[4]
they are Unix or Linux shell scripts
|
shell | bash |
XML files | xml | dtd, DTD, xsd, xsl |
SPARQL files | sparql | - |
TeX files | tex | - |
xpath files | xpath | - |
patch files | patch | - |
eiffel files | eiffel | - |
manifest files[5]
it is Java manifest file
|
manifest | - |
css files | css | - |
csv files[6]
Uses commas as delimiters
|
csv | - |
csv2 files[7]
Uses semi-colons as delimiters
|
csv2 | - |
turtle files | turtle | ttl |
name=valueor:
name=value
<pre syntax="java"> public void toto(int i) { _ System.out.println(i); } </pre>This allows to keep the indentation for programming languages when using formatting in some editors[8]
java
, groovy
, bat
or shell
syntaxes among othersinvisibleChars
attribute in the "pre" element. For example:<pre syntax="java" invisibleChars="false"> public void toto(int i) { _ System.out.println(i); } </pre>
<pre syntax="java"> public void toto(int i) { System.out.println(i); } </pre>
<pre syntax="java"> public void toto(int i) { _ System.out.println(i); } </pre>will have the following result:
public void toto(int i) { System.out.println(i); }
<pre syntax="java"> <parent name="name"> <child name="child" /> </parent> </pre>will have the following result:
<parent name="name"> <child name="child" /> </parent>
<pre syntax="css"> div.left { _ float: left; _ display: flex; } </pre>will have the following result:
div.left { float: left; display: flex; }
<pre syntax="properties"> name=toto position=left </pre>will have the following result:
name=toto position=left
java
, groovy
, bat
or shell
syntaxes among othersdocJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.