Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
77db6c0e
Commit
77db6c0e
authored
Mar 19, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add YAML syntax highlighting in docs
Also added JSON and tweaked properties settings. Fixes gh-511
parent
a20f8b4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
1 deletion
+87
-1
xslthl-config.xml
spring-boot-docs/src/main/docbook/xsl/xslthl-config.xml
+2
-0
json-hl.xml
spring-boot-docs/src/main/docbook/xsl/xslthl/json-hl.xml
+37
-0
properties-hl.xml
...g-boot-docs/src/main/docbook/xsl/xslthl/properties-hl.xml
+1
-1
yaml-hl.xml
spring-boot-docs/src/main/docbook/xsl/xslthl/yaml-hl.xml
+47
-0
No files found.
spring-boot-docs/src/main/docbook/xsl/xslthl-config.xml
View file @
77db6c0e
...
...
@@ -17,5 +17,7 @@
<highlighter
id=
"sql"
file=
"./xslthl/sql2003-hl.xml"
/>
<highlighter
id=
"asciidoc"
file=
"./xslthl/asciidoc-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"
/>
</xslthl-config>
spring-boot-docs/src/main/docbook/xsl/xslthl/json-hl.xml
0 → 100644
View file @
77db6c0e
<?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>
spring-boot-docs/src/main/docbook/xsl/xslthl/properties-hl.xml
View file @
77db6c0e
...
...
@@ -31,7 +31,7 @@ Michiel Hendriks <elmuerte at users.sourceforge.net>
<highlighters>
<highlighter
type=
"oneline-comment"
>
#
</highlighter>
<highlighter
type=
"regex"
>
<pattern>
^(.+)(?==|:)
</pattern>
<pattern>
^(.+
?
)(?==|:)
</pattern>
<style>
attribute
</style>
<flags>
MULTILINE
</flags>
</highlighter>
...
...
spring-boot-docs/src/main/docbook/xsl/xslthl/yaml-hl.xml
0 → 100644
View file @
77db6c0e
<?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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment