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. Post preview not accurate

Post preview not accurate

Scheduled Pinned Locked Moved Site Bugs / Suggestions
csharphtmlvisual-studiocomregex
1 Posts 1 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.
  • K Offline
    K Offline
    Kyle Moyer
    wrote on last edited by
    #1

    Just noticed that my submission to the latest coding challenge got mangled a bit (here[^]) After some fiddling, I found it's related to the "Best Guess" option available while pasting. Best guess seems to avoid encoding HTML characters (for reasons unbeknownst to me,) which obviously leads to quirkiness when pasting C# code using generics. Unfortunately, the post preview doesn't actually match what ends up being posted in these cases. Pasted with "Encode HTML" option:

    private List<Tuple<string, string>> testStrings = new List<Tuple<string,string>>()

    Pasted with "Best Guess" option:

    private List> testStrings = new List>()

    Both of those code blocks look the same in the preview, but as you can see, the end result is definitely not. Well, make a liar out of me... I don't know how it got the way it is. What you see in my submission is not what my code looks like in Visual Studio, but I can't reproduce the outcome...

    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