8

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
  • 1
    Kirk can you modify your post with the syntaxhighlighter then post it please. Thanks for everyone's patience. Commented Oct 25, 2011 at 13:38

3 Answers 3

6

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

1
  • 3
    Thank you Rebecca, much appreciated. Commented Oct 25, 2011 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
    +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. Commented Oct 17, 2011 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.