Problem with Code Macro

3 Messages Forum Options Options
Permalink
atw
Problem with Code Macro
Reply Threaded More
Print post
Permalink

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!
John Carroll
Re: Problem with Code Macro
Reply Threaded More
Print post
Permalink
hi atw,

I had similar problem.  I was trying to color text displayed by doc.display and could only get black.
I got around it by using inline css:

<span style="color:#ff0000;font-size: 16pt;font-family:'arial, sans-serif' "> $doc.display("farResult", "view", $obj)</span>

There is probably a much better solution.

John Carroll
atw 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!
muxa
Re: Problem with Code Macro
Reply Threaded More
Print post
Permalink
Just add font-family to .code pre (or any else that's inside class
.code):
.code pre {
font-family: Courier;
}
As there are some specific spans in code macro, like span with class
.java-quote, you might need to specify its font-family too:
.java-quote {
font-family: Courier;
}
or
.java-quote {
font-family: inherit;
}
 Quoting atw : 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
 Ar cieņu, Mihails

Links:
------
[1] mailto:traninger@...
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users