Re: [slf4j-dev] svn commit: r1321 - slf4j/trunk/slf4j-site/src/site/pages
Thorbjoern Ravn Andersen wrote: Please don't toppost. I was not aware that we had a posting policy. I'll revert it for now, and come back to it later. I found that Bruce Eckell uses it in his book Thinking in C++ so there is at least another author I can locate who use it :) After downloading Thinking in C++, 2nd edition, Volume 1 at http://www.mindviewinc.com/Books/ I could not find any references to pretty printer. It looks that Bruce used an RTF to HTML converter to generate the HTML and that presumably the original text was written in MS Word. However, it appears that Bruce is not using selective emphasis which is interesting information in itself. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch ___ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev
Re: [slf4j-dev] svn commit: r1321 - slf4j/trunk/slf4j-site/src/site/pages
Ceki Gulcu skrev: Hello Thorbjoern, I am in favor of code prettifiers as long as they allow us to emphasize, e.g. present in bold, selected parts of the code, but if not, then I prefer ugly. :-) Thorbjoern Ravn Andersen wrote: Ceki Gulcu skrev: Hello Thorbjørn, Do you intend to pursue this effort on coloring? As this revision stands, I don't see the point... Put differently, it looks like a lot of effort for a meager result. WDYT? Been busy with other things the last few days. Meager? Don't think so! And it was trivially simple to do with vim, so if it would make it more readable it is a benefit to the documentation. I was inspired by the way StackOverflow presents its code snippets, and it turns out they use Prettify: http://code.google.com/p/google-code-prettify/ which uses Javascript. Perhaps that would both be easier, simpler to maintain and ... well... prettier :) Please don't toppost. I'll revert it for now, and come back to it later. I found that Bruce Eckell uses it in his book Thinking in C++ so there is at least another author I can locate who use it :) -- Thorbjørn Ravn Andersen ...plus... Tubular Bells! ___ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev
Re: [slf4j-dev] svn commit: r1321 - slf4j/trunk/slf4j-site/src/site/pages
Ceki Gulcu skrev: Hello Thorbjoern, I am in favor of code prettifiers as long as they allow us to emphasize, e.g. present in bold, selected parts of the code, but if not, then I prefer ugly. :-) I have tried to find a blog entry again who talked about that most programmers these days use a colouring editor, and that for the book he wrote, he spent a LONG time with the printer (or was it editor) to have the program samples printed with colour similar to what you see on-screen so you would get all the subtle hints that makes it easier to read and comprehend. Unfortunately I cannot find it for now :(( What editor do you use? If you use Emacs or vi in a vt100 that might explain it :) -- Thorbjørn Ravn Andersen ...plus... Tubular Bells! ___ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev
Re: [slf4j-dev] svn commit: r1321 - slf4j/trunk/slf4j-site/src/site/pages
Hello Thorbjørn, Do you intend to pursue this effort on coloring? As this revision stands, I don't see the point... Put differently, it looks like a lot of effort for a meager result. WDYT? r...@slf4j.org wrote: Author: ravn Date: Sun Apr 19 02:23:53 2009 New Revision: 1321 Modified: slf4j/trunk/slf4j-site/src/site/pages/manual.html Log: experimental colorized version of HelloWorld.java Modified: slf4j/trunk/slf4j-site/src/site/pages/manual.html == --- slf4j/trunk/slf4j-site/src/site/pages/manual.html (original) +++ slf4j/trunk/slf4j-site/src/site/pages/manual.html Sun Apr 19 02:23:53 2009 @@ -36,7 +36,7 @@ the source code. /p - pre class=sourceimport org.slf4j.Logger; +!-- pre class=sourceimport org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HelloWorld { @@ -45,6 +45,16 @@ logger.info(Hello World); } }/pre +-- +pre class=sourcefont color=#1773ccimport/fontnbsp;org.slf4j.Logger; +font color=#1773ccimport/fontnbsp;org.slf4j.LoggerFactory; + +font color=#008b00bpublic/b/fontnbsp;font color=#008b00bclass/b/fontnbsp;HelloWorld { +nbsp;nbsp;nbsp;nbsp;font color=#008b00bpublic/b/fontnbsp;font color=#008b00bstatic/b/fontnbsp;font color=#008b00bvoid/b/fontnbsp;main(String[]nbsp;args)nbsp;{ +nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Logger logger = LoggerFactory.getLogger(HelloWorld.font color=#008b00bclass/b/font); +nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;logger.info(font color=#4a6f8bquot;Hello Worldquot;/font); +nbsp;nbsp;nbsp;nbsp;} +}/font/pre pTo run this example, you first need to a href=download.htmldownload the slf4j distribution/a, and ___ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch ___ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev