Hi,
I've added a plugin for tinymce so it has a "code" box. So the box works and such. But now I want to add the highlighting part.
For that i need to load scripts and stylesheets.
Example:
<script type="text/javascript" src="syntaxhighlighter_3.0.83/scripts/shCore.js"></script>
<link type="text/css" rel="stylesheet" href="syntaxhighlighter_3.0.83/styles/shCoreDefault.css"/>
<script src="syntaxhighlighter_3.0.83/scripts/shAutoloader.js" type="text/javascript"></script>
<script type="text/javascript">
SyntaxHighlighter.autoloader(
'applescript syntaxhighlighter_3.0.83/scripts/shBrushAppleScript.js'
'as3 syntaxhighlighter_3.0.83/scripts/shBrushAS3.js'
'bash shell syntaxhighlighter_3.0.83/scripts/shBrushBash.js'
'coldfusion syntaxhighlighter_3.0.83/scripts/shBrushColdFusion.js'
'cpp syntaxhighlighter_3.0.83/scripts/shBrushCpp.js'
'csharp syntaxhighlighter_3.0.83/scripts/shBrushCSharp.js'
'css syntaxhighlighter_3.0.83/scripts/shBrushCss.js'
'delphi syntaxhighlighter_3.0.83/scripts/shBrushDelphi.js'
'diff syntaxhighlighter_3.0.83/scripts/shBrushDiff.js'
'erlang syntaxhighlighter_3.0.83/scripts/shBrushErlang.js'
'groovy syntaxhighlighter_3.0.83/scripts/shBrushGroovy.js'
'javafx syntaxhighlighter_3.0.83/scripts/shBrushJavaFX.js'
'java syntaxhighlighter_3.0.83/scripts/shBrushJava.js'
'js jscript javascript syntaxhighlighter_3.0.83/scripts/shBrushJScript.js'
'perl syntaxhighlighter_3.0.83/scripts/shBrushPerl.js'
'php syntaxhighlighter_3.0.83/scripts/shBrushPhp.js'
'plain syntaxhighlighter_3.0.83/scripts/shBrushPlain.js'
'powershell syntaxhighlighter_3.0.83/scripts/shBrushPowerShell.js'
'python syntaxhighlighter_3.0.83/scripts/shBrushPython.js'
'ruby syntaxhighlighter_3.0.83/scripts/shBrushRuby.js'
'sass syntaxhighlighter_3.0.83/scripts/shBrushSass.js'
'scala syntaxhighlighter_3.0.83/scripts/shBrushScala.js'
'sql syntaxhighlighter_3.0.83/scripts/shBrushSql.js'
'vb vbs vbscript syntaxhighlighter_3.0.83/scripts/shBrushVb.js'
'xml syntaxhighlighter_3.0.83/scripts/shBrushXml.js'
);
SyntaxHighlighter.all();
</script>
But the problem is, these scripts and stylesheets are not loaded inside the content/dijit.TitlePane boxes.
So basically syntax highlighting will work if only i could get "content.php?contentid=111" to also load those javascripts and stylesheets.
</div><div class="ContentItem" id="contentid_111" oncontextmenu="KnowledgerootMenu.show('mousemenu','contentcontext', 14, 111); return false;">
<!-- anchor --><a name="111"></a>
<div class="showMe" style="display:none;" dojoType="dijit.TitlePane" title="<b></b>" open="false" href="content.php?contentid=111">
</div>