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. Other Discussions
  3. Site Bugs / Suggestions
  4. Smileys in code == bad, m'kay?

Smileys in code == bad, m'kay?

Scheduled Pinned Locked Moved Site Bugs / Suggestions
data-structuresjsonquestion
4 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.
  • S Offline
    S Offline
    Stuart Dootson
    wrote on last edited by
    #1

    Chris - would it be possible to turn off smiley parsing within <pre> and <code> blocks? These generally represent code, and you probably don't want smileys in code?

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    C 1 Reply Last reply
    0
    • S Stuart Dootson

      Chris - would it be possible to turn off smiley parsing within <pre> and <code> blocks? These generally represent code, and you probably don't want smileys in code?

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      Can you send me a link to a message with code that contains smileys? The code should be smart enough to not convert, but it can always be improved.

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      S 1 Reply Last reply
      0
      • C Chris Maunder

        Can you send me a link to a message with code that contains smileys? The code should be smart enough to not convert, but it can always be improved.

        cheers, Chris Maunder

        CodeProject.com : C++ MVP

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        I would, except I 'refactored' the smiley out (I always preview). However, it was a regex, like this:

        std::tr1::regex re("^([^:]*):(\\d+)\\s+(\\d+)\\s+(\\S)\\s+(\\S)$");

        The preview indicates an anti-smiley (the correct reaction to any regex, possibly) between the first two captures.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        C 1 Reply Last reply
        0
        • S Stuart Dootson

          I would, except I 'refactored' the smiley out (I always preview). However, it was a regex, like this:

          std::tr1::regex re("^([^:]*):(\\d+)\\s+(\\d+)\\s+(\\S)\\s+(\\S)$");

          The preview indicates an anti-smiley (the correct reaction to any regex, possibly) between the first two captures.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          Added to the bug list. Thanks

          cheers, Chris Maunder

          CodeProject.com : C++ MVP

          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