kubabuk Posted April 30, 2011 Share Posted April 30, 2011 Is there any way I can enable syntax highlighting for a python source code? I remember to use the following syntax in the past <source lang="python"> but not sure if it is supported by odforce wiki. thanks, kuba Quote Link to comment Share on other sites More sharing options...
Marc Posted May 12, 2011 Share Posted May 12, 2011 Hey Kuba Sorry I missed this post. I can take a look for a plugin for mediawiki, but if you know of one then please let me know and I'll install it. Thanks Marc Quote Link to comment Share on other sites More sharing options...
kubabuk Posted May 12, 2011 Author Share Posted May 12, 2011 Hi Marc, no worries. The extension name is GeSHi and I'm pretty sure this is most common one, I'm not a wiki expert though. I had some problems with using <syntaxhighlight lang="python"> tag. I tend to use <source lang="python"> instead. http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi http://nmrwiki.org/wiki/index.php?title=Posting_source_code Quote Link to comment Share on other sites More sharing options...
Marc Posted May 12, 2011 Share Posted May 12, 2011 ok cool I'll try and get some time to install it this weeked. Thanks Marc Quote Link to comment Share on other sites More sharing options...
kubabuk Posted May 13, 2011 Author Share Posted May 13, 2011 cool thanks Marc! Quote Link to comment Share on other sites More sharing options...
Marc Posted May 15, 2011 Share Posted May 15, 2011 Hey Kuba I've installed the GeSHi plugin and it seems to work (tried out some php code on my user page ). Please try it out and let me know how it goes. Thanks Marc Quote Link to comment Share on other sites More sharing options...
kubabuk Posted May 15, 2011 Author Share Posted May 15, 2011 Nice one! Just tested and following tag works as expected. Thanks. <source lang="python"> >/source> Hopefully soon will see some major updates in HOM and HDK sections... Below attached a link to supported lang parameters : http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi Kuba Quote Link to comment Share on other sites More sharing options...
Marc Posted May 16, 2011 Share Posted May 16, 2011 Hopefully soon will see some major updates in HOM and HDK sections... That's what I like to hear . Quote Link to comment Share on other sites More sharing options...
graham Posted May 17, 2011 Share Posted May 17, 2011 Thanks Marc. I've been meaning to dump a bunch of my internal wiki notes onto the wiki but haven't had the time. I'll see about posting some misc stuff soon. Glad to know highlighting works now. Geshi works pretty well; it's what I use to display all my script content on my toolbox site. Quote Link to comment Share on other sites More sharing options...
graham Posted May 17, 2011 Share Posted May 17, 2011 So after dumping a few bits of random info into the wiki I think it might be nice if there was a bit more styling going on to make the code blocks more obvious. Maybe like a slight border and padding, or a little different background color? Quote Link to comment Share on other sites More sharing options...
Marc Posted May 31, 2011 Share Posted May 31, 2011 Hey Graham, Sorry I missed this one too.. weird. Anyway, I'm sure there are some things that can be done to the css of the plugin. Do I hear the sounds of a volunteer? M Quote Link to comment Share on other sites More sharing options...
graham Posted May 31, 2011 Share Posted May 31, 2011 Yeah, sure. I was telling Jason a little while ago I was going to email you soon asking if there was any site related things I could help out on. I've got a bunch of free time over the summer I need to keep myself busy. Quote Link to comment Share on other sites More sharing options...
Marc Posted June 2, 2011 Share Posted June 2, 2011 There's plenty to be done . Drop me a mail and we can talk. M Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.