WordPress Julia Syntax Highlighting

January 19 2016 in Julia | Tags: , , | Author: Christopher Rackauckas

using Julia
print("Test for Julia")
A = [0 1 ; 0 1];

Syntax highlighting in Julia exists? Yes, you can make it work even though no plugins currently support it. The way I was able to get it to work was to use the WP-GeSHi-Highlight WordPress plugin which uses GeSHi to perform the syntax highlighting. Sure enough, an unofficial Julia syntax file for GeSHi is hosted on GitHub. I manually plopped this file into the GeSHi folder in my WordPress install, used the command lang="julia" and you can see at the top of this page that it worked!

Write a Reply or Comment

Your email address will not be published. Required fields are marked *