Recommendation for <xmp> or <listing>

Sergio Salvi lists3-8OOxOvJoDXDLSf97qRSy8VAUjnlXr6A1 at public.gmane.org
Thu Mar 25 14:52:53 UTC 2004


Why not a script like this one ?

[]s,
Salvi

--------------------------------
#!/usr/bin/perl -w

undef $/;
$string = <>;

my %html_chars = (
        '&', '&',
        '>', '>',
        '<', '<',
        '"', '"'
);

my $html_string = join ("", keys %html_chars);
$string =~ s/([$html_string])/$html_chars{$1}/go;
print $string;
--------------------------------


Denis Mironenko wrote:
> Can you use <textarea readonly="true"> tag?
> 
>>
>> I need to include HTML/TeX/shell codes with '<' and '>' characters.
>> But, <xmp> or <listing> have been deprecated in newer HTML specs.  So,
>> what is the recommended solution?
>>
>> -- 
>> William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
>> Linux solution for data processing and document management.
>> -- 
>> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
>> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
>> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
> 
> 
> _________________________________________________________________
> STOP MORE SPAM with the MSN Premium and get 2 months FREE*    
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
> 
> 
> -- 
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
> 
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list