[thelist] Marking up words in colours

Kipper Timmins kipper_timmins at yahoo.co.uk
Sat Jan 19 03:23:13 CST 2008

Hi J,
If you were using ph pi would say set up a simple string replacement that
replaces all occurances of something, so store it as a method in a separate
file, and then include it, and then just store youre string in a variable
and then run the convert on it! Then you could just use <font color ...>
</font> not ideal but would keep the coding neat and i think would validate
Hope this helps

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of John Allsopp
Sent: 19 January 2008 06:56
To: thelist at lists.evolt.org
Subject: [thelist] Marking up words in colours

Hi people

If I wanted to make multicoloured words throughout a page, for instance 
if I wanted to give 'multicoloured' a green 'm', blue 'u', yellow 'lt' 
and so on, how would I best mark that up?

It seems to me I'd wreck any chance of searching on the text whatever 
I'd do. But for my application it might be worthwhile. So what would be 
least disruptive?

I mean <span class='green'>m</span><span class='blue'>u</span> etc is a 
real mess and makes a mockery of markup removing style from content.

Is there a way of just doing less typing? Or should I be forgetting html 
and using something else like svg or maybe an image with the coloured 
text, with plain text by the side.




* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list