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. Setting lang attribute to xml

Setting lang attribute to xml

Scheduled Pinned Locked Moved Site Bugs / Suggestions
xmlhelp
2 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.
  • M Offline
    M Offline
    Meshack Musundi
    wrote on last edited by
    #1

    Setting the lang attribute of a <pre> tag to xml results in broken code. Setting it to html resolves the issue. This issue shows up after publishing an article but not in an article preview.

    "As beings of finite lifespan, our contributions to the sum of human knowledge is one of the greatest endeavors we can undertake and one of the defining characteristics of humanity itself"

    C 1 Reply Last reply
    0
    • M Meshack Musundi

      Setting the lang attribute of a <pre> tag to xml results in broken code. Setting it to html resolves the issue. This issue shows up after publishing an article but not in an article preview.

      "As beings of finite lifespan, our contributions to the sum of human knowledge is one of the greatest endeavors we can undertake and one of the defining characteristics of humanity itself"

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

      Can you please send a link to the article with which you're seeing the issue? XML and HTML actually use exactly the same colourisation rules.

      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