Ralf Nieuwenhuijsen schrieb:
> In the mean time, i'm working on documentation..
>
> How do I layout code in the api-viewer?
> I'm trying to put some example code on top the class definition.
>
> Using <code>.. </code> is kind of pretty, but i am not able to make
> multi-lines of code layout nicely. I could offcouse just put some
> style='' attributes in there .. i was just hoping that some other
> magic tag has been overloaded to make code layout nicely.
>
> Greetings,
> Ralf.
>
>   
Hi Ralf,

we use the following code:

 * <code class="javascript">
 *   var female = new qx.ui.form.RadioButton("female");
 *   var male = new qx.ui.form.RadioButton("male");
 *
 *   var mgr = new qx.ui.core.RadioManager();
 *   mgr.add(female, male);
 *
 *   layout.add(male);
 *   layout.add(female);
 * </code>

The API viewer understands the "class" attribute and will format and 
syntax highlight the code correctly.

Best Fabian

-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to