Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python C extensions: color coding for C code not working #186

Open
jpastuszuk opened this issue Nov 30, 2018 · 2 comments
Open

Python C extensions: color coding for C code not working #186

jpastuszuk opened this issue Nov 30, 2018 · 2 comments

Comments

@jpastuszuk
Copy link
Contributor

Some of C scripts (currently found 1 example) does not color code in html form:
http://book.pythontips.com/en/latest/python_c_extension.html#python-c-api

zrzut ekranu 2018-11-30 o 20 06 25

I would suggest coloring that for easier understanding of whats going on there

@yasoob
Copy link
Owner

yasoob commented Nov 30, 2018

This is a known issue. I tried a bunch of things to force color it. I don't know why it is not working. If you know of a solution, I am all ears. Normally .. code:: c should make it work but I don't know why it's failing in this situation.

@jpastuszuk
Copy link
Contributor Author

Have you tried to color it with somewhat compatible c++ coloring? It should be pretty close. Additionally .. code:: c does color the snippet directly in rst file correctly - how do you generate html page from rst file?

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

No branches or pull requests

2 participants