Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

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

Open
jzuhone opened this issue Aug 1, 2014 · 1 comment

Comments

@jzuhone
Copy link

jzuhone commented Aug 1, 2014

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
Copy link
Member

pao commented Aug 1, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants