Next in thread → Next in month →

Re: [docbook-apps] Own Syntaxhighting with "keywords" which have spaces

From
Lars Vogel <>
Date
2013-02-22T16:24:06+00:00
ID
CAOeJ3wtSsML54Gu5WwGcHcCtnsYf3ckQJmojm=
Thread
Re: [docbook-apps] Own Syntaxhighting with "keywords" which have spaces
Hi Jirka,

thanks you for the tip. Setup was very easy with your link.

Here an example if someome else is interested:

<highlighter type="regex">
	<pattern>git\scommit|push|pull|log|fetch|init|config|add|rm|show|status|diff|blame|clone|remote|stash|clean|checkout|reset|revert|reflog|tag|branch|merge|rebase|submodule</pattern>
	<style>attribute</style>
</highlighter>

Best regards, Lars


2013/2/22 Jirka Kosek <>:
> On 21.2.2013 20:45, Lars Vogel wrote:
>
>> Is this possible to define keyword with spaces? If yes, how?
>
> Probably no, but you can do this using regex highlighter. I suggest
> consulting XSLTHL documentation and source code:
>
> http://sourceforge.net/apps/mediawiki/xslthl/index.php?title=Syntax_Highlighters#regex_highlighter
>
> --
> ------------------------------------------------------------------
>   Jirka Kosek      e-mail:       http://xmlguru.cz
> ------------------------------------------------------------------
>        Professional XML consulting and training services
>   DocBook customization, custom XSLT/XSL-FO document processing
> ------------------------------------------------------------------
>  OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
> ------------------------------------------------------------------
>     Bringing you XML Prague conference    http://xmlprague.cz
> ------------------------------------------------------------------
>
Next in thread → Next in month →