This question about Using an extension: Answered

Add WYSIWYG Format <verbatim class="css">

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:

##  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.


QuestionForm edit

Subject Using an extension
Extension TinyMCEPlugin, WysiwygPlugin
Version Foswiki 1.1.5
Status Answered
Related Topics
Topic revision: r2 - 07 Apr 2013, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy