[xwiki-devs] Font used by the code macro (was : Problem with Code Macro)
You can add this in style.css : ------------8<---------------------------- pre, pre span { font-family:Courier; } ------------8<---------------------------- Devs : I'd be +1 to modify this in our skins, may be should add a special css class to the PREs generated by the code macro to achieve this. WDYT ? On Wed, Jul 2, 2008 at 4:35 PM, atw <[email protected]> wrote:
Most likely I'm missing something, but maybe someone can help me out with this:
when I insert something like:
{code} #set($e = "Test") {code}
in a page, I'd expect the content displayed in Courier or a similar font. But all I can get is Arial...
(XE 1.5 RC2 as well as 1.41 on Windows XP, Tomcat 6.0, Oracle 10.2.0.3, Firefox 2).
Thanks for any help on this! -- View this message in context: http://www.nabble.com/Problem-with-Code-Macro-tp18238925p18238925.html Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Jean-Vincent Drean
On Jul 2, 2008, at 4:52 PM, Jean-Vincent Drean wrote:
You can add this in style.css :
------------8<---------------------------- pre, pre span { font-family:Courier; } ------------8<----------------------------
Devs : I'd be +1 to modify this in our skins, may be should add a special css class to the PREs generated by the code macro to achieve this. WDYT ?
Looks good to me although this means we don't have a solution for escaping portions of text for which we don't want to use a fixed sized font. I think that we should differentiate the code macro from the "noformat" macro when rewriting the new rendering macros. The code macro should use a fixed sized font I agree while the noformat one could use another one by default. Thanks -Vincent
On Wed, Jul 2, 2008 at 4:35 PM, atw <[email protected]> wrote:
Most likely I'm missing something, but maybe someone can help me out with this:
when I insert something like:
{code} #set($e = "Test") {code}
in a page, I'd expect the content displayed in Courier or a similar font. But all I can get is Arial...
(XE 1.5 RC2 as well as 1.41 on Windows XP, Tomcat 6.0, Oracle 10.2.0.3, Firefox 2).
Thanks for any help on this! -- View this message in context: http://www.nabble.com/Problem-with-Code-Macro-tp18238925p18238925.html Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Jean-Vincent Drean _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hello, This discussion reminds me of another point: The code highlighting in the code macro is fairly poor compared to others. Isn't there a way to improve that? I mean there are already other (browser-javascript) solutions available for this task: http://code.google.com/p/syntaxhighlighter/ (LGPL -> compatible) http://shjs.sourceforge.net/index.html (GPL) http://softwaremaniacs.org/soft/highlight/en/ (3Clause BSD style) Furthermore it is not very easy to extend the radeox code macro to handle more different languages (Or I haven't found it yet). Just an idea.. Nice greetings Jonas Jean-Vincent Drean wrote:
You can add this in style.css :
------------8<---------------------------- pre, pre span { font-family:Courier; } ------------8<----------------------------
Devs : I'd be +1 to modify this in our skins, may be should add a special css class to the PREs generated by the code macro to achieve this. WDYT ?
On Wed, Jul 2, 2008 at 4:35 PM, atw <[email protected]> wrote:
Most likely I'm missing something, but maybe someone can help me out with this:
when I insert something like:
{code} #set($e = "Test") {code}
in a page, I'd expect the content displayed in Courier or a similar font. But all I can get is Arial...
(XE 1.5 RC2 as well as 1.41 on Windows XP, Tomcat 6.0, Oracle 10.2.0.3, Firefox 2).
Thanks for any help on this! -- View this message in context: http://www.nabble.com/Problem-with-Code-Macro-tp18238925p18238925.html Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Jonas, Your wish is soon going to be reality! :) We're now rewriting the rendering engine and as part of this we're rewriting the macros (we're getting rid of Radeox). Thanks for the pointers. We'll need to find a good framework to use. It'll have to be a java one since the rendering is done on the server side. A first usable version of the new rendering should be released in September. That said, you can add new formatting for the radeox code macro. Let me know if you're interested and I'll dig up the details. Thanks -Vincent On Jul 3, 2008, at 11:07 AM, Jonas von Malottki wrote:
Hello, This discussion reminds me of another point: The code highlighting in the code macro is fairly poor compared to others. Isn't there a way to improve that?
I mean there are already other (browser-javascript) solutions available for this task: http://code.google.com/p/syntaxhighlighter/ (LGPL -> compatible) http://shjs.sourceforge.net/index.html (GPL) http://softwaremaniacs.org/soft/highlight/en/ (3Clause BSD style)
Furthermore it is not very easy to extend the radeox code macro to handle more different languages (Or I haven't found it yet).
Just an idea.. Nice greetings Jonas
Jean-Vincent Drean wrote:
You can add this in style.css :
------------8<---------------------------- pre, pre span { font-family:Courier; } ------------8<----------------------------
Devs : I'd be +1 to modify this in our skins, may be should add a special css class to the PREs generated by the code macro to achieve this. WDYT ?
On Wed, Jul 2, 2008 at 4:35 PM, atw <[email protected]> wrote:
Most likely I'm missing something, but maybe someone can help me out with this:
when I insert something like:
{code} #set($e = "Test") {code}
in a page, I'd expect the content displayed in Courier or a similar font. But all I can get is Arial...
(XE 1.5 RC2 as well as 1.41 on Windows XP, Tomcat 6.0, Oracle 10.2.0.3, Firefox 2).
Thanks for any help on this! -- View this message in context: http://www.nabble.com/Problem-with-Code-Macro-tp18238925p18238925.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Vincent, that sounds good. I guess I can wait and use development builds and help testing of course ;) It wasn't quite obvious to me that you'll want to get rid of radeox completely. Thanks so far. Jonas Vincent Massol wrote:
Hi Jonas,
Your wish is soon going to be reality! :)
We're now rewriting the rendering engine and as part of this we're rewriting the macros (we're getting rid of Radeox). Thanks for the pointers. We'll need to find a good framework to use. It'll have to be a java one since the rendering is done on the server side. A first usable version of the new rendering should be released in September.
That said, you can add new formatting for the radeox code macro. Let me know if you're interested and I'll dig up the details.
Thanks -Vincent
On Jul 3, 2008, at 11:07 AM, Jonas von Malottki wrote:
participants (3)
-
Jean-Vincent Drean -
Jonas von Malottki -
Vincent Massol