Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-28 Thread Lukas Theussl
Hi Lennart, Thanks for picking this up! Personally I don't like either of the two solutions you propose... :p The APT format was above all designed to be simple, which necessarily implies some functional limitations. Eg it is on purpose that APT does not support styles [1], if any fancy

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-27 Thread Lennart Jörelid
Hello there Simone, You are quite right; I tested applying the maven-fluido-skin to the jaxb2-maven-plugin, patch http://jira.codehaus.org/browse/MJAXB-55. Feel free to checkout / patch to take a look at the skin in action. Another question, though: How do I disable line numbering for *some*

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-27 Thread Simone Tripodi
Hi Lennart, unfortunately there's no way ATM to specify where applying the line numbering and where not :( The only way to do it, would be applying what you suggested in your first message :) Have a nice day, all the best! Simo http://people.apache.org/~simonetripodi/

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-27 Thread Lennart Jörelid
Hello Lukas, A question here... It seems simple enough to add the required constants conveying the choice to provide syntax coloring or line number visibility to Doxia's SinkEventAttributes. It also seems simple enough to make a smallish change to the core SinkAdapter, to recognize more

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-26 Thread Lukas Theussl
There is a feature request for that: https://jira.codehaus.org/browse/DOXIA-439 It's not implemented yet... HTH, -Lukas On Sat, Nov 26, 2011 at 2:16 AM, Lennart Jörelid lennart.jore...@gmail.comwrote: Hello Simone, Looking good. So ... given that this is a skin to maven, could you

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-26 Thread Simone Tripodi
Hi all, apologize but I have my own difficulties on understanding the issue; why applying the code highlight should be a concern of the doxia renderer? I mean, Doxia has the task of generating the html code, the skin has the task of applying styles on elements where class/id are already set... I

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-26 Thread Lennart Jörelid
Hello Lukas, All right; I'll see if I can check out the code and get started on a patch. Tomorrow is the word; today's heavy task has to do with feasting and birthdays. :) 2011/11/26 Lukas Theussl ltheu...@apache.org There is a feature request for that:

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-26 Thread Lennart Jörelid
Hello Simone, First - sorry for being short on the brink of incomprehensible in my response above. You are correct in that Doxia prepares HTML and the skin applies the style. However, to simplify site generation for the site developer, we need to create a set of markups understandable by Doxia

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-26 Thread Simone Tripodi
Hi Lennart, what yu=ou described is something that si already working (at least for us), for your purposes you could just use the fluido-skin with that configuration in site.xml skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-fluido-skin/artifactId version1.0/version

Syntax coloured code snippets in Site - existing or DYO

2011-11-25 Thread Lennart Jörelid
Hello folks, I need to include some pretty-printed and syntax coloured code snippets into the maven site of a set of projects. After a tad of searching, I haven't found any plugin or extension to Doxia that seems to do this. There seems to be several box text and don't ruin its formatting-type

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-25 Thread Simone Tripodi
Hi Lennart, we are going to release the maven-fluido-skin[1] that does also code prettyprint ans syntax highlight. HTH! Simo [1] http://maven.apache.org/skins/maven-fluido-skin/ http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi

Re: Syntax coloured code snippets in Site - existing or DYO

2011-11-25 Thread Lennart Jörelid
Hello Simone, Looking good. So ... given that this is a skin to maven, could you include the CSS and JS of the syntax highlighter (i.e. http://alexgorbatchev.com/SyntaxHighlighter/ )? However, I guess my question is on a more fundamental level. What do we need to do in an APT file (or one of