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. Syntax HIglighter for my blog post is published in article as raw html

Syntax HIglighter for my blog post is published in article as raw html

Scheduled Pinned Locked Moved Article Writing
questionhtml
3 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.
  • E Offline
    E Offline
    Ehsan Sajjad
    wrote on last edited by
    #1

    I recently linked my tehnical blog with my account and when my article was synced on codeproject, the code portions which i highlighted as language code using http://www.hilite.me was rendered in techincal blog as plain html instead of the way it should look like on my blog. So my question is why it happens that when i am using some syntax highlighter plugin on my blogger articles and when they will be fetched on code project via feed, my code blocks displayed incorrectly?

    C 1 Reply Last reply
    0
    • E Ehsan Sajjad

      I recently linked my tehnical blog with my account and when my article was synced on codeproject, the code portions which i highlighted as language code using http://www.hilite.me was rendered in techincal blog as plain html instead of the way it should look like on my blog. So my question is why it happens that when i am using some syntax highlighter plugin on my blogger articles and when they will be fetched on code project via feed, my code blocks displayed incorrectly?

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

      Your syntax highlighter on your blog may be Javascript based, meaning it will only work on content on your blog. We also clear out colourisation from other sources in order to have "clean" codeblocks we can work with. Colourising should generally work automatically but sometimes it needs a kick. Can you point me to your article and I'll take a look? Usually it's simply a matter of a quick edit to set the language of the codeblock to get the colouriser to choose the right palette.

      cheers Chris Maunder

      E 1 Reply Last reply
      0
      • C Chris Maunder

        Your syntax highlighter on your blog may be Javascript based, meaning it will only work on content on your blog. We also clear out colourisation from other sources in order to have "clean" codeblocks we can work with. Colourising should generally work automatically but sometimes it needs a kick. Can you point me to your article and I'll take a look? Usually it's simply a matter of a quick edit to set the language of the codeblock to get the colouriser to choose the right palette.

        cheers Chris Maunder

        E Offline
        E Offline
        Ehsan Sajjad
        wrote on last edited by
        #3

        I edited it myself and its fine now but i was thinking about same issue will come in future when article is synced.

        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