[TYPO3] quote html code in rtehtmlarea

Krystian Szymukowicz t33kRE.MO.VE. at RE.MO.VE.prolabium.com
Fri Sep 21 07:57:01 CEST 2007


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.

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.

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

--
Krystian Szymukowicz


More information about the TYPO3-english mailing list