There is a plugin called CodeColorer By Dmytro Shteflyuk which is free and works great. (Description: This plugin allows you to insert code snippets to your posts with nice syntax highlighting powered by GeSHi library.)
Only problem: There is no “Insert Code” button in the visual editor TinyMCE… so you HAVE to remember what code is for what.
If you use it seldomly… you need to look up every time how this is done. Dmytro please change! 😉 (is not in Version 0.9.9)
Visit plugin site: http://kpumuk.info/projects/wordpress-plugins/codecolorer/examples/
[cc lang="bash" escaped="true" width="600"]
# Block width in pixels
[/cc]
display php:
[cc lang="php" escaped="true" width="600"]
# Block width in pixels
[/cc]
display html:
[cc lang="html" escaped="true" width="600"]
# Block width in pixels
[/cc]
display javascript:
[cc lang="js" escaped="true" width="600"]
# Block width in pixels
[/cc]
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!