JuliaLang / JuliaDoc

28 stars 26 forks source link

Syntax highlighting not the same between julia documentation and package documentation #9

Open jzuhone opened 10 years ago

jzuhone commented 10 years ago

I'm writing a Julia package (http://github.com/jzuhone/jt), and I have forked the JuliaDoc repository (http://github.com/jzuhone/JuliaDoc) to use this style with my documentation.

I'd like the syntax highlighting to be the same as the Julia documentation, which numbers highlighted as a pale blue, types as bold dark blue, etc. But I'm not getting this to show up correctly in my documentation.

A good example of how the syntax highlighting is showing up in my docs is shown at http://www.jzuhone.com/jt/users_guide/arrays.html (code at http://github.com/jzuhone/jt/blob/master/doc/source/users_guide/arrays.rst). Sometimes there is no syntax highlighting at all in some code blocks (e.g., everything is black). When it does, some of the highlighting that I see in the Julia documentation doesn't show up the same way (e.g., type names are not boldfaced). I've looked over the source for the Julia documentation to determine what I am missing, but have come up short.

Here is my conf.py, if its helps: http://github.com/jzuhone/jt/blob/master/doc/source/conf.py

pao commented 10 years ago

I think it may just be that the julia lexer gets confused by the REPL prompt and printed output, since those are not syntactically correct Julia code. I think that there's a different lexer in Pygments called jlcon which you should use for console sessions.