[TYPO3] quote html code in rtehtmlarea
typo3news at otherone.de
Fri Sep 21 08:29:54 CEST 2007
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:
>> Also see:
>> 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.
More information about the TYPO3-english