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

If you right-click on the verbatim block, the Chili highlighting classes can be assigned to the text.
  • Highlight the lines for the Verbatim block
  • Use the Format menu to apply the VERBATIM markup
  • Right-click the resulting block and chose a JQuery Chili class.

Note that in 1.1.6, more chili classes will be listed, under a more generic syntax highlight context menu. This web site is now running 1.1.6, so you can see the new feature when editing this topic. Older versions will still present the context menu, but using a less clear JQueryChili item.

-- GeorgeClark - 14 Nov 2012
 

QuestionForm edit

Subject Using an extension
Extension WysiwygPlugin
Version Foswiki 1.1.5
Status Answered
Related Topics
Topic revision: r2 - 14 Nov 2012, GeorgeClark - This page was cached on 18 Oct 2018 - 05:26.

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