On Jan 16, 2008, at 11:28 AM, Tatets wrote:
>
> Ok. My use case is remarking some important sentences in the explain
> of a
> code. For example, its very different seeing this:
>
> String id = (String)
> request.getAttribute(PresentationConstants.ID_OBJ);
>
> or this:
>
> String id = (String)
> request.getAttribute(PresentationConstants.ID_OBJ);
>
> for explaining a java cast :)
>
> But i think this is not possible...
No it's not possible out of the box. You'd need to develop code for
doing this using javascript. You could also look at tools like
Crucible for code reviews.
> Whats the meaning of BTW? I dont know..:S
BTW = By The Way
-Vincent
> vmassol wrote:
>>
>>
>> On Jan 16, 2008, at 11:00 AM, Tatets wrote:
>>
>>>
>>> Ok, perhaps i didnt explain it well...i dont know a lot of
>>> english :)
>>>
>>> What i want is put a bold code. For example:
>>> {code:java}
>>> //java code
>>> //bold java code
>>> //more java code
>>> {code}
>>>
>>> I want to put footnotes inside de java code too:
>>> {code:java}
>>> //java code
>>> //footnote1
>>> //bold java code
>>> //more java code
>>> //footnote2
>>> //more java code
>>> //footnotes
>>> {code}
>>>
>>> is it possible? Have i explained it correctly? :S
>>> Thank you for your reply :)
>>
>> The code macro is there to put code inside. Everything you put inside
>> is rendered as you type it. I don't understand why you want to put
>> footnotes or bold and I don't think it's meant for that. There's a
>> footnote macro available BTW if you want. See the macros in the code
>> zone.
>>
>> Maybe you should explain your use case and what you want to do
>> instead?
>>
>> Thanks
>> -Vincent
>>
>>> vmassol wrote:
>>>>
>>>>
>>>> On Jan 16, 2008, at 9:50 AM, Tatets wrote:
>>>>
>>>>>
>>>>> Hi, i would like to ask about the posibility of introducing xwiki
>>>>> code inside
>>>>> a code box. For example, putting footnotes or bolding a code line,
>>>>> thats
>>>>> exactly what i want to do. I have searched a lot but i dont find
>>>>> what i
>>>>> want.
>>>>>
>>>>> That obviously doesnt work:
>>>>> {code:none}
>>>>> <grid:definition *readOnly="true"* id="tablaTiposValor"
>>>>> width="750"
>>>>> height="140" filter="false" rowsXPath="/ajax-response/response/
>>>>> item">
>>>>> <grid:query url="./GridEditionAction.do">
>>>>> {code}
>>>>>
>>>>> Could someone help me please? :(
>>>>
>>>> I don't understand what you want.
>>>>
>>>> If your code is java for example you can use:
>>>>
>>>> {code:java}
>>>> // java here
>>>> {code}
>>>>
>>>> -Vincent
>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> [email protected]
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Xwiki-code-inside-a-code-box--tp14874244p14876787.html
>>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> users mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Xwiki-code-inside-a-code-box--tp14874244p14877544.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users