Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. CSS and Specific Word Colouring

CSS and Specific Word Colouring

Scheduled Pinned Locked Moved ASP.NET
cssquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Unsworth
    wrote on last edited by
    #1

    Hi Guys Is it possible to format specific words using CSS? I'm wanting to highlight key words within some pages of code samples, but don't fancy wrapping all the keywords in tags... Cheers, :-D

    oooo, the Jedi's will feel this one....

    D 1 Reply Last reply
    0
    • P Paul Unsworth

      Hi Guys Is it possible to format specific words using CSS? I'm wanting to highlight key words within some pages of code samples, but don't fancy wrapping all the keywords in tags... Cheers, :-D

      oooo, the Jedi's will feel this one....

      D Offline
      D Offline
      daveyerwin
      wrote on last edited by
      #2

      The current level of CSS does not offer this much desired feature.It can be acomplished with a simple regular expression either in javascript on the client or the language of your choice on the server.The result would be to progromaticaly add fancy wrapping in tags to all the keywords .

      P 1 Reply Last reply
      0
      • D daveyerwin

        The current level of CSS does not offer this much desired feature.It can be acomplished with a simple regular expression either in javascript on the client or the language of your choice on the server.The result would be to progromaticaly add fancy wrapping in tags to all the keywords .

        P Offline
        P Offline
        Paul Unsworth
        wrote on last edited by
        #3

        OK cool. I'll have a crack at that method then. A little c# behind the scenes could go a long way... Thank you. :-D

        oooo, the Jedi's will feel this one....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups