This question about Using an extension: Answered
Our Company uses foswiki as documentation platform. In our topics are many bash-scripts included. I have installed the
JQueryChili plugin for syntax highlighting. To enable the Chili-plugin, I have to put the text into
<verbatim class="bash" > < /verbatim >
tags.
But the WYSIWYG VERBATIM format adds
<verbatim> </verbatim>
tags.
Is it possible to add another format to the WYSIWYG editor which puts the text into verbatim class="bash" tags?
--
KlausReithmaier - 31 Oct 2012
You should be able to use the right mouse button to change the class of the verbatim block:
#!/bin/bash
## Combine the two *-excludes variables into the $excludes variable
excludes="$(for i in $dir_excludes; do if [ -d $i ]; then \
echo -n " --exclude=$i/*"; fi; done) $(for i in $file_excludes; do \
echo -n " --exclude=$i"; done)"
Highlight the block, select VERBATIM from the dropdown. Then right-click in the block. Depending on your version of
TinyMCE, there should be either a JQueryChili option or a "Syntax Highlighting" option. From there you can set the "bash" class.
Sorry about missing this question. The <verbatim> tag in the topic title was breaking the display.