I have a document from the author and he is using the listings package. He has this code:
roll.html has this:
His PDF looks like this:
My file looks like this:
Notice the coloring of "charset," "id," and the words between <title> and </title>. Any ideas on why the difference in color? He is also using a lot of Java code and that coloring seems to be correct. It is just when he uses the language=html.
LaTeX forum ⇒ General ⇒ listings | Color in HTML Code
LaTeX specific issues not fitting into one of the other forums of this category.
3 posts • Page 1 of 1
nifty wrote:I have a document from the author and he is using the listings package. […]
Can't the author just leave the concerned piece of code to you so that you can reproduce the appearance? Nevertheless, a minimal example that shows your recent efforts would be good to get closer to a solution.
Anyway, you have to set the colors for identifiers and strings explicitly. From what I can see on the pictures you attached, I tried to reproduce the desired output.
It goes without saying that this is only a basic example which needs some adjustments, especially regarding the colors. Since you didn't provide any code, I can't explain why the pieces of text you mentioned are colored in your example.
And next time please upload attachments to the forum sever. External links can get lost with time and make a problem incomprehensible later. If necessary, convert and scale images to match the 256kb limit for single attachments.
- The output as obtained by the given code.
- reproduction.png (67.72 KiB) Viewed 4404 times
Who is online
Users browsing this forum: No registered users and 10 guests