Here's some instructions I obtained from David Whitehurst, who has a blog on JRoller. Here's an example of the highlighting:
http://jroller.com/page/dlwhitehurst?entry=i_didn_t_write_that Instructions: Add this to top of your blogged entry ... <!-- style sheet should be linked at the top of the page --> <link type="text/css" rel="stylesheet" href=" http://static.appfuse.org/scripts/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css"> </link> <p> Have you ever written code or worked on a module ... Then I put this around the code ... <textarea name="code" class="java" cols="60" rows="10"> private boolean checkInsuranceWithAdjunctEligibilityForIncome() {} </textarea> And, this is needed at the bottom .... <!-- the following code should be place at the bottom of the page --> <script language="javascript" src="http://static.appfuse.org/scripts/dp.SyntaxHighlighter/Scripts/shCore.js"></script> <script language="javascript" src="http://static.appfuse.org/scripts/dp.SyntaxHighlighter/Scripts/shBrushJava.js "></script> <script language="javascript" src="http://static.appfuse.org/scripts/dp.SyntaxHighlighter/Scripts/shBrushXml.js "></script> <script language="javascript"> dp.SyntaxHighlighter.HighlightAll('code'); </script> Notice that these scripts are stored on my site (static.appfuse.org). Maybe we could host them on rollerweblogger.org? Dave - do you have unlimited bandwidth on that site? Matt On 2/3/07, kaig <[EMAIL PROTECTED]> wrote:
Hi there, I want to be able to create blog entries containing highlighted source code. How am I supposed to do this? The normal WYSIWYG editor does not have such an option, so how is this possible? What is the best practise for doing something like this? Thanks in advance cheers Kai -- View this message in context: http://www.nabble.com/Source-Code-Highlighting-tf3166846s12275.html#a8784933 Sent from the Roller - User mailing list archive at Nabble.com.
-- http://raibledesigns.com
