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. Article Writing
  4. Editor trouble with formatted html

Editor trouble with formatted html

Scheduled Pinned Locked Moved Article Writing
csharpjavascripthtmlcomsysadmin
5 Posts 3 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
    Steve Wellens
    wrote on last edited by
    #1

    I have a technical blog here: SignalR is Magic[^] There are two snippets that are not rendering correctly. In the editor they look like this (good): http://i.imgur.com/UjmLWph.png[^] When they render they looks like this (bad): http://i.imgur.com/ckLlTVt.png[^] Here is the html: <pre> <span style="font-family: courier new,courier,monospace;"> <strong> Server                                          Client </strong> PostScoreToServer C# ----- <span style="background-color: #ffff00;">SignalR Magic</span> -----> postScoreToServer JS </span> </pre>

    T 1 Reply Last reply
    0
    • S Steve Wellens

      I have a technical blog here: SignalR is Magic[^] There are two snippets that are not rendering correctly. In the editor they look like this (good): http://i.imgur.com/UjmLWph.png[^] When they render they looks like this (bad): http://i.imgur.com/ckLlTVt.png[^] Here is the html: <pre> <span style="font-family: courier new,courier,monospace;"> <strong> Server                                          Client </strong> PostScoreToServer C# ----- <span style="background-color: #ffff00;">SignalR Magic</span> -----> postScoreToServer JS </span> </pre>

      T Offline
      T Offline
      Thomas Daniels
      wrote on last edited by
      #2

      The article system can only handle some HTML in code blocks; other HTML is escaped. Bold, italics and underline works, and span-tags only work if they have highlight or emphasis as class.

      The quick red ProgramFOX jumps right over the Lazy<Dog>.

      S 1 Reply Last reply
      0
      • T Thomas Daniels

        The article system can only handle some HTML in code blocks; other HTML is escaped. Bold, italics and underline works, and span-tags only work if they have highlight or emphasis as class.

        The quick red ProgramFOX jumps right over the Lazy<Dog>.

        S Offline
        S Offline
        Steve Wellens
        wrote on last edited by
        #3

        It looks like Sean Ewington just fixed it. Thanks Sean.

        S 1 Reply Last reply
        0
        • S Steve Wellens

          It looks like Sean Ewington just fixed it. Thanks Sean.

          S Offline
          S Offline
          Sean Ewington
          wrote on last edited by
          #4

          Actually it looks like it's still not highlighted. Sometimes the article editor gets mad at me when I try to highlight inside <pre> tags. I can try again if you'd like.

          Thanks, Sean Ewington CodeProject

          S 1 Reply Last reply
          0
          • S Sean Ewington

            Actually it looks like it's still not highlighted. Sometimes the article editor gets mad at me when I try to highlight inside <pre> tags. I can try again if you'd like.

            Thanks, Sean Ewington CodeProject

            S Offline
            S Offline
            Steve Wellens
            wrote on last edited by
            #5

            No, that's OK. The next time I want to do something really sophisticated like highlighting a word, I'll create an image and use that.

            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