Jump to content

How to auto highlight text?


rain13

Recommended Posts

How to auto highlight text?Is there Css or something? I have no idea how to start.I want highlight tekst like.Whats between quotes or < and > - greywhats after dollar sign goes red if not in quotes. $var1 would be red()<>-.=*/+- light redAnd so on. What makes it bit hard is that highlight must end when quote ends or with doller sign highlight must en with first space.

Link to comment
Share on other sites

You would have to manually create HTML elements to wrap around the characters you want to highlight.The other solution is to build a complex parsing program in Javascript.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...