I got syntax highlighting
I can not get automatic loader to work Am I
& lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Link href = "genres / shCore.css" rel = "stylesheet" type = "text / css" /> & Lt; Link href = "styles / shCoreDefault.css" rel = "stylesheet" type = "text / css" /> & Lt; Script src = "script / shCore.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "script / whiteloader.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Syntax Highlighter.Autoloder ('js script / shabrzjscript.js'); SyntaxHighlighter.all (); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Pre-class = "brush: js" & gt; Function Fu () {} & lt; / Pre & gt; & Lt; / Body & gt; & Lt; / Html & gt; I've ensured that my URLs / script paths are correct.
This works, but I really want to work as an autoloader. & lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Link href = "genres / shCore.css" rel = "stylesheet" type = "text / css" /> & Lt; Link href = "styles / shCoreDefault.css" rel = "stylesheet" type = "text / css" /> & Lt; Script src = "script / shCore.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "script / wordbuscript.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; SyntaxHighlighter.all (); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Pre-class = "brush: js" & gt; Function Fu () {} & lt; / Pre & gt; & Lt; / Body & gt; & Lt; / Html & gt; To work "SyntaxHighlighter.autoloader", you put in your "pre" sections or documents ready in the callback. The "autoloader" method examines the currently loaded "pre" sections and examines the requests of the same brush. So if this body body is executed before loading, then no brush will be loaded.
Comments
Post a Comment