Ulf,
In case you want to use your own special markup, you might want to consider
the use of a post-Translate filter.
Put your markup inside a {{{ [here is my special markup]... }}} so it is
not touched by JSPWiki.
Your post-Translate filter will be called after the page was converted to
HTML.
It
Hi Ulf,
the body of a plugin can be reached through the special parameter _body
[#1] (there should be a blank line between plugin parameters and the plugin
body
itself); f.ex., the IfPlugin [#2],[#3] parses the plugin's body if some
condition is met.
Also, keep in mind that for a "RawPlugin" you
No, I hadn't been aware of that. That does pretty much what I want to
accomplish. And I see there's CSS to alter the colors.
Thanks a lot!
Out of curiosity: is there any way to achieve what I originally asked? I
see myself wanting to have this in JSPWiki in some way sooner or later.
Ulf
On Tue,
Ulf
Did you try %%prettify style?
https://jspwiki-wiki.apache.org/Wiki.jsp?page=Prettify
dirk
> On 2 Apr 2019, at 09:16, Ulf Dittmer
> wrote:
>
> Hi-
>
> I'm trying to expand the markup possibilities by adding code blocks that
> get styled using the https://github.com/codelibs/jhighlight li
Hi-
I'm trying to expand the markup possibilities by adding code blocks that
get styled using the https://github.com/codelibs/jhighlight library (which
emits HTML). I've written a filter that uses preTranslate to look for a
particular syntax I invented ("[]") and replaces the contents of those