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. Article code auto-formating (C#, \" escape)

Article code auto-formating (C#, \" escape)

Scheduled Pinned Locked Moved Site Bugs / Suggestions
csharp
2 Posts 2 Posters 1 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 Riley
    wrote on last edited by
    #1

    I notice that the auto-formatting for lang="cs" code in new articles doesn't handle the \" escape character in mid-string. Thus if you have code like --- sb.Append("\""); sb.Append(MyProperty); sb.Append("\""); --- it thinks you've opened a second string on the first line and not closed it until the last. In fact I only have two literal strings here and both are a double-quote. Paul

    C 1 Reply Last reply
    0
    • P Paul Riley

      I notice that the auto-formatting for lang="cs" code in new articles doesn't handle the \" escape character in mid-string. Thus if you have code like --- sb.Append("\""); sb.Append(MyProperty); sb.Append("\""); --- it thinks you've opened a second string on the first line and not closed it until the last. In fact I only have two literal strings here and both are a double-quote. Paul

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

      We're currently working on redoing the syntax colouring. cheers, Chris Maunder

      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