[TYPO3] quote html code in rtehtmlarea

Uschi Renziehausen typo3news at otherone.de
Fri Sep 21 08:29:54 CEST 2007


Hello Krystian,

Krystian Szymukowicz wrote:
> Uschi Renziehausen wrote:
>> Hi Matyi and Krystian,
>>
>> the fact, that you cannot write about entities in rtehtmlarea is to a 
>> bug, that needs fixing:
>> http://bugs.typo3.org/bug_view_advanced_page.php?bug_id=3830
>> Also see:
>> http://bugs.typo3.org/view.php?id=5659
>>
>> at Krystian: Why do you think that writing about code inside RTE is 
>> not a good idea? Even if you use one of the extensions for that 
>> purpose, what you get, is always blocks of code. But what, if you want 
>> to write some explanations for that code? You are stuck!
> 
> 
> Because specialized solution can make intends, colorize your source 
> code, number lines, highlight some special lines that you want to 
> describe, make downloadable version etc.
> <pre> can not do that all - you can only make line numbers in pre using 
> special background.

You are right as far multiple lines of code are concerned, but i was 
talking about code inside <code> or <var> in a normal paragraph.

> 
> Explanations can be made as comments in the code (// #). Or you can just 
> split the code into smaller chunks. Or you can just make explanation to 
> line numbers or highlighted lines. Of course this is matter of taste 
> what solution one prefer.
> 

It is not simply a matter of taste, but also one of the audience and the 
  cleanest possible presentation to ease up reading.

> If you need to make explanation for a lot of really very short code 
> examples then indeed - maybe its better to use <pre>.
> 

No, because pre is a block element.

Regards, Uschi


More information about the TYPO3-english mailing list