Permalink
Browse files

Item12201: Missing chili classes

and the menu items are a bit geeky

git-svn-id: http://svn.foswiki.org/trunk@15772 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
GeorgeClark GeorgeClark
GeorgeClark authored and GeorgeClark committed Oct 29, 2012
1 parent 5217138 commit 4ab72625850822c5208260522151977bab17fb2f
@@ -500,7 +500,7 @@
selectedFormats,
current = '';
ed.plugins.foswikibuttons.recipe_names = ['tml', 'html', 'js'];
ed.plugins.foswikibuttons.recipe_names = ['bash','cplusplus','csharp','css','delphi','html','java','js','lotusscript','php','sql','tml'];
for (i = 0; i < ed.plugins.foswikibuttons.recipe_names.length; i += 1) {
key = ed.plugins.foswikibuttons.recipe_names[i];
recipes[key] = { "block" : "pre", "remove" : "all", classes : 'TMLverbatim ' + key };
@@ -519,12 +519,12 @@
if (selectedFormats.length > 0) {
current = '(' + selectedFormats[0] + ')';
}
sm = m.addMenu({title : 'jQuery chili' + current });
sm = m.addMenu({title : 'Syntax highlighting' + current });
jQuery.each(recipes, function (name, format) {
sm.add({title : '&lt;verbatim class="' + name + '"&gt;', cmd : 'foswikiVerbatimClass', value : name });
sm.add({title : name , cmd : 'foswikiVerbatimClass', value : name });
});
sm.add({title : '&lt;verbatim&gt;', cmd : 'foswikiVerbatimClass', value : '' });
sm.add({title : 'none', cmd : 'foswikiVerbatimClass', value : ' ' });
}
});
}

0 comments on commit 4ab7262

Please sign in to comment.