[sphinx-users] Re: How to use substitution in code-block with code highlight

2017-10-04 Thread Peter Burdine
Or you can use another directive do the replace first, then process the code block. We use the Jinja extension to do this on a regular basis. Note that we are still using Sphinx 1.4.x and highlighting only works for HTML, it does not highlight in PDF output. I do not know if it has been fixed

Re: [sphinx-users] How to use substitution in code-block with code highlight

2017-10-04 Thread Komiya Takeshi
Hi Kengo, AFAIK, there are no way to do that. You need to search 3rd party extension or make new one to do that. parsed-literal is very powerful. It can generate literal-block including decorated text (em, strong and so on), hyperlinks, images, and so on. so it is hard to highlight its result. Of