Skip to content

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

Open

Description

@jpastuszuk

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

Activity

  1. yasoob commented on Nov 30, 2018

    @yasoob
    Owner

    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.

  2. jpastuszuk commented on Nov 30, 2018

    @jpastuszuk
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions