rain13 Posted August 10, 2010 Share Posted August 10, 2010 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 More sharing options...
Ingolme Posted August 11, 2010 Share Posted August 11, 2010 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 More sharing options...
skaterdav85 Posted August 11, 2010 Share Posted August 11, 2010 I had to do this in one of my projects and I found a simple jQuery plugin that will highlight any set of words on a page. Check it out here Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.