Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-doc-dev] Improving code snippet visual effect in doc


Olivier,

This makes sense to me. What I think would be useful is the ability to convert a snipet of code from an editor into HTML that uses classes to identify the syntactic elements (perhaps using a Copy Special operation or something similar). Then the look could be tailored through a CSS file. The ability to generate the CSS from the Eclipse preferences would make tailoring the look easier.

Michael



Olivier Thomann/Ottawa/IBM@IBMCA
Sent by: platform-doc-dev-bounces@xxxxxxxxxxx

07/06/2007 11:12 AM

Please respond to
"Platform Documentation discussions." <platform-doc-dev@xxxxxxxxxxx>

To
platform-doc-dev@xxxxxxxxxxx
cc
Subject
[platform-doc-dev] Improving code snippet visual effect in doc





Hi,

I noticed that all code snippets are in blue.
Personnally I prefer much more code snippets with syntax coloring. There
are tools like http://www.java2html.de/ that easily allows colors to be
used to improve the visual effect of the code snippets. java2html has a
CPL license, so it should not be a problem to use it for Eclipse doc. It
even has an Eclipse style.

This tool is just an example. I am sure there are other tools to achieve
the same result (get syntax coloring for code snippets).

I would like to propose to use such a tool to create the code snippets
inside Eclipse doc. Not for 3.3, but post 3.3.

Any comments?

Olivier
_______________________________________________
platform-doc-dev mailing list
platform-doc-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-doc-dev


Back to the top