-
Notifications
You must be signed in to change notification settings - Fork 90
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
Some odd syntax highlighting in some code blocks #525
Comments
Proposed Solution Here are the details of the proposed changes:
|
Hi Davide, I went to the site above but am not sure how to use it. Is it supposed to render the AsciiDoc? I don't see a choice for that. |
Hi Chris, You can use https://rouge.jneen.net/ to render the code contained in the |
We could, of course, file an issue against Rouge. Just realize that they might not be very sympathetic to changes that require accepting incorrect syntax for the language that is being claimed to be highlighted in a code block (if that is what you are hoping to ask them -- I am not sure). |
If we do not like the syntax highlighting for a particular language that Rouge provides for Protobuf, we could consider also changing the language we claim the code block is written in, including to one that causes no color highlighting to occur at all. |
Original comments:
I believe that most of these issues are because the code blocks are not legal syntax for the language we are telling AsciiDoc to use for color highlighting the code block. For example, in something like:
id: <number>
in a code block marked with the languageprotobuf
, the angle brackets are intended to denote to the reader that<number>
can be replaced with any decimal integer in ASCII. The angle brackets are probably illegal, and sometimes are colorized strangely.The text was updated successfully, but these errors were encountered: