Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
135 lines (113 sloc) 4.16 KB
#########################################################
# This is patched version of the default asciidoc conf #
# it uses source-highlight even for the docbook backend #
#########################################################
#
#
# AsciiDoc source code highlight filter configuration file.
#
# Documented in source-hightlight-filter.txt in AsciiDoc distribution
# ./examples/website/ directory.
#
# HTML outputs require GNU source-highlight
# http://www.gnu.org/software/src-highlite/source-highlight.html
#
########################
# Source block templates
########################
[source-highlight-block]
template::[listingblock]
ifdef::backend-html4[]
[source-highlight-block]
<a name="{id}"></a>
<p><b>{title}</b></p>
<table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td>
|
</td></tr></table>
endif::backend-html4[]
# Customized listingblock block for xhtml11 to ensure valid XHTML1.1.
ifdef::backend-xhtml11[]
[source-highlight-block]
<div class="listingblock">
<a id="{id}"></a>
<div class="title">{caption=}{title}</div>
<div class="content">
|
</div></div>
endif::backend-xhtml11[]
ifdef::backend-docbook[]
[source-highlight-block]
|
endif::backend-docbook[]
#########################
# Source paragraph styles
#########################
[paradef-default]
ifdef::backend-html4[]
source-style=template="passthroughblock",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight -f html -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}"
endif::backend-html4[]
ifdef::backend-xhtml11[]
source-style=template="exampleblock",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight -f xhtml -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}"
endif::backend-xhtml11[]
ifdef::backend-docbook[]
source-style=template="exampleblock",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight -f docbook -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}"
endif::backend-docbook[]
#########################
# Source block styles
#########################
[blockdef-listing]
ifdef::backend-html4[]
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight -f html -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}"
endif::backend-html4[]
ifdef::backend-xhtml11[]
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight -f xhtml -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}"
endif::backend-xhtml11[]
ifdef::backend-docbook[]
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight -f docbook -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}"
endif::backend-docbook[]
#
# DEPRECATED: Pre 8.2.7 filter definition.
#
#########################
# Source block definition
#########################
[blockdef-source-highlight]
# The old ^ delimiter is for backward compatibility, may be removed from
# in future versions.
delimiter=(^source~{4,}$)|(^\^{4,}$)
template=source-highlight-block
presubs=none
posattrs=language,src_numbered,src_tab
postsubs=callouts
# GNU Source Highlight filter.
filter=source-highlight -f {backend-xhtml11?xhtml}{backend-html4?html}{backend-docbook?docbook} -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}
#
# DEPRECATED: End
#
#######
# Workaround for wkhtmltopdf bugs
#######
[replacements]
(^-- )=&mdash;&nbsp;
(\n-- )|( -- )|( --\n)=&nbsp;&mdash;&nbsp;
(\w)--(\w)=\1&mdash;\2
\\--(?!-)=--
(\w)'(\w)=\1&apos;\2
# ... Ellipsis (entity reference &hellip;)
(?<!\\)\.\.\.=&hellip;
\\\.\.\.=...
# Arrows from the Arrows block of Unicode.
# -> right arrow
(?<!\\)-&gt;=-&gt;
\\-&gt;=-&gt;
# => right double arrow
(?<!\\)\=&gt;=&rArr;
\\\=&gt;==&gt;
# <- left arrow
(?<!\\)&lt;-=&lt;-
\\&lt;-=&lt;-
# <= left double arrow
(?<!\\)&lt;\==&lArr;
\\&lt;\==&lt;=
# Opa
OPA==Opa
Jump to Line
Something went wrong with that request. Please try again.