On account that I will probably be posting about code and different programming languages here, one of the first things I set out to do was find a proper syntax highlighter. Fortunately, I found a really good article about the different syntax highlighter plugins available for WordPress here.
For now, I decided to try SyntaxHighlighter Plus Evolved (Plus has lost support). Here’s a little test:
#include <iostream>
int main() {
std::cout << "Hello world!" << std::endl; //This is a comment
return 0;
}
It looks good but, unfortunately, when pasting code in visual mode is destroys the indentation and inserts new lines at odd spots. Because of that, I had to use the HTML mode. Fortunately, however, the plugin takes care of escaping characters so no need to worry about that.
Overall, I like it but I’m a bit bummed it doesn’t support any functional languages. Then again, it’s not like I use any of them at all…