Syntax Highlighting

0

I was looking for something else on the internet this afternoon, and happened across this: http://www.johnkolbert.com/wordpress/add-native-syntax-highlighting-and-line-numbering-to-your-plugin-with-wp-28/

Syntax highlighting in the Pod Pages, Templates, and Helpers fields would be great. I currently find myself toggling between my browser and Notepad++ when I'm looking for that fat-finger that's causing part of my page not to display correctly.

While I'm asking, what about adding syntax highlighting via this plugin to the forums would be a great addition too... http://alexgorbatchev.com/wiki/SyntaxHighlighter

Thanks again, and keep up the good work!

asked Nov 17 '09 at 12:21

chris.pilko

889

add comment
enter at least 15 characters

4 Answers

0

CodePress and Bespin are the two main ones I've been looking into. CodePress is what WP uses, but it has browser compatibility issues (which is why WP disabled it in 2.8.1). It also seems to have issues when being initialized with hidden HTML elements (e.g. a textarea within a hidden div).

Mozilla Bespin is a more serious contender, and IMO has a brighter future. Its standalone editor component is still in early development and pretty buggy though.

We will add code highlighting eventually, but want to make absolutely sure that the editor/highlighter we choose will make people's lives easier (and not get in the way).

answered Oct 9 '09 at 5:27

logikal16

249

add comment
enter at least 15 characters
0

+1 for syntax highlighting making pods even better!

answered Oct 10 '09 at 10:33

jbrickman

13

add comment
enter at least 15 characters
0

a temporary setting for "turn on buggy highlighter/editor" would be nice in the mean time ;)

answered Oct 10 '09 at 11:17

brewern

47

add comment
enter at least 15 characters
0

"+1 for syntax highlighting making pods even better!" ;-)

answered Nov 17 '09 at 12:21

Tárcio Zemel

1

add comment
enter at least 15 characters