Font used by the code macro (was : Problem with Code Macro)

5 Messages Forum Options Options
Permalink
Jean-Vincent Drean
Font used by the code macro (was : Problem with Code Macro)
Reply Threaded More
Print post
Permalink
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 <traninger@...> 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
> users@...
> http://lists.xwiki.org/mailman/listinfo/users
>



--
Jean-Vincent Drean
_______________________________________________
devs mailing list
devs@...
http://lists.xwiki.org/mailman/listinfo/devs
vmassol
Re: [xwiki-users] Font used by the code macro (was : Problem with Code Macro)
Reply Threaded More
Print post
Permalink

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 <traninger@...> 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
>> users@...
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Jean-Vincent Drean
> _______________________________________________
> users mailing list
> users@...
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
devs mailing list
devs@...
http://lists.xwiki.org/mailman/listinfo/devs
Jonas von Malottki
Re: Font used by the code macro (was : Problem with Code Macro)
Reply Threaded More
Print post
Permalink
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 <traninger@...> 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
>> users@...
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>

_______________________________________________
devs mailing list
devs@...
http://lists.xwiki.org/mailman/listinfo/devs
vmassol
Re: Font used by the code macro (was : Problem with Code Macro)
Reply Threaded More
Print post
Permalink
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 <traninger@...> 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.
_______________________________________________
devs mailing list
devs@...
http://lists.xwiki.org/mailman/listinfo/devs
Jonas von Malottki
Re: Font used by the code macro (was : Problem with Code Macro)
Reply Threaded More
Print post
Permalink
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:
>

_______________________________________________
devs mailing list
devs@...
http://lists.xwiki.org/mailman/listinfo/devs