9

Using the current tools in the GIS blog results in loss off source code formatting, when switching from the HTML to the View tab.

As a workaround, I think we should try the syntaxhighlighter plugin for wordpress.

http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/

  • 1
    Kirk can you modify your post with the syntaxhighlighter then post it please. Thanks for everyone's patience. – Mapperz Oct 25 '11 at 13:38
7

This has been installed, let me know if you have any trouble with it.

  • 3
    Thank you Rebecca, much appreciated. – Mapperz Oct 25 '11 at 4:29
5

Looks a good tool - if the Stack Exchange Employees accept it and install it we can use it.

Detailed instructions for the install are here:

http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html

(I am not sure if this would affect other overflow SE sites?)

  • 1
    +1 I think it would be important to have a tool like this. I found that I need good source code support in every second blog post. – underdark Oct 17 '11 at 19:39
2

I've found storing code snippets as gists - https://gist.github.com/gists and then linking these in via JavaScript a good approach for including code in wordpress.

<script src="https://gist.github.com/784880.js"> </script>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .