Add YAML syntax highlighting in docs
Also added JSON and tweaked properties settings. Fixes gh-511
This commit is contained in:
parent
a20f8b4be0
commit
77db6c0e06
|
|
@ -17,5 +17,7 @@
|
||||||
<highlighter id="sql" file="./xslthl/sql2003-hl.xml" />
|
<highlighter id="sql" file="./xslthl/sql2003-hl.xml" />
|
||||||
<highlighter id="asciidoc" file="./xslthl/asciidoc-hl.xml" />
|
<highlighter id="asciidoc" file="./xslthl/asciidoc-hl.xml" />
|
||||||
<highlighter id="properties" file="./xslthl/properties-hl.xml" />
|
<highlighter id="properties" file="./xslthl/properties-hl.xml" />
|
||||||
|
<highlighter id="json" file="./xslthl/json-hl.xml" />
|
||||||
|
<highlighter id="yaml" file="./xslthl/yaml-hl.xml" />
|
||||||
<namespace prefix="xslthl" uri="http://xslthl.sf.net" />
|
<namespace prefix="xslthl" uri="http://xslthl.sf.net" />
|
||||||
</xslthl-config>
|
</xslthl-config>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<highlighters>
|
||||||
|
<highlighter type="oneline-comment">#</highlighter>
|
||||||
|
<highlighter type="string">
|
||||||
|
<string>"</string>
|
||||||
|
<escape>\</escape>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="string">
|
||||||
|
<string>'</string>
|
||||||
|
<escape>\</escape>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="annotation">
|
||||||
|
<start>@</start>
|
||||||
|
<valueStart>(</valueStart>
|
||||||
|
<valueEnd>)</valueEnd>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="number">
|
||||||
|
<point>.</point>
|
||||||
|
<exponent>e</exponent>
|
||||||
|
<suffix>f</suffix>
|
||||||
|
<suffix>d</suffix>
|
||||||
|
<suffix>l</suffix>
|
||||||
|
<ignoreCase />
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="keywords">
|
||||||
|
<keyword>true</keyword>
|
||||||
|
<keyword>false</keyword>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="word">
|
||||||
|
<word>{</word>
|
||||||
|
<word>}</word>
|
||||||
|
<word>,</word>
|
||||||
|
<word>[</word>
|
||||||
|
<word>]</word>
|
||||||
|
<style>keyword</style>
|
||||||
|
</highlighter>
|
||||||
|
</highlighters>
|
||||||
|
|
@ -31,7 +31,7 @@ Michiel Hendriks <elmuerte at users.sourceforge.net>
|
||||||
<highlighters>
|
<highlighters>
|
||||||
<highlighter type="oneline-comment">#</highlighter>
|
<highlighter type="oneline-comment">#</highlighter>
|
||||||
<highlighter type="regex">
|
<highlighter type="regex">
|
||||||
<pattern>^(.+)(?==|:)</pattern>
|
<pattern>^(.+?)(?==|:)</pattern>
|
||||||
<style>attribute</style>
|
<style>attribute</style>
|
||||||
<flags>MULTILINE</flags>
|
<flags>MULTILINE</flags>
|
||||||
</highlighter>
|
</highlighter>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<highlighters>
|
||||||
|
<highlighter type="oneline-comment">#</highlighter>
|
||||||
|
<highlighter type="string">
|
||||||
|
<string>"</string>
|
||||||
|
<escape>\</escape>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="string">
|
||||||
|
<string>'</string>
|
||||||
|
<escape>\</escape>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="annotation">
|
||||||
|
<start>@</start>
|
||||||
|
<valueStart>(</valueStart>
|
||||||
|
<valueEnd>)</valueEnd>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="number">
|
||||||
|
<point>.</point>
|
||||||
|
<exponent>e</exponent>
|
||||||
|
<suffix>f</suffix>
|
||||||
|
<suffix>d</suffix>
|
||||||
|
<suffix>l</suffix>
|
||||||
|
<ignoreCase />
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="keywords">
|
||||||
|
<keyword>true</keyword>
|
||||||
|
<keyword>false</keyword>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="word">
|
||||||
|
<word>{</word>
|
||||||
|
<word>}</word>
|
||||||
|
<word>,</word>
|
||||||
|
<word>[</word>
|
||||||
|
<word>]</word>
|
||||||
|
<style>keyword</style>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="regex">
|
||||||
|
<pattern>^(---)$</pattern>
|
||||||
|
<style>comment</style>
|
||||||
|
<flags>MULTILINE</flags>
|
||||||
|
</highlighter>
|
||||||
|
<highlighter type="regex">
|
||||||
|
<pattern>^(.+?)(?==|:)</pattern>
|
||||||
|
<style>attribute</style>
|
||||||
|
<flags>MULTILINE</flags>
|
||||||
|
</highlighter>
|
||||||
|
</highlighters>
|
||||||
Loading…
Reference in New Issue