Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Keep Your Codes Neat!


11 replies to this topic

#11 mahesh2k

    Trap Double Mocha Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,347 posts
  • Gender:Male
  • Location:Valley of Darkness
  • myCENT:27.17
  • Spam Patrol

Posted 14 November 2010 - 11:51 AM

Never copy content from sources which adds it's own markup. For example if you're copying content from openoffice or word to your static HTML site in body tag. Then make sure you strip out it's editor coding. This code will make more changes to the content.So if you are trying to add neat code to your content then you already ruined it by having extra code from other editors.

#12 Quatrux

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 605 posts
  • Gender:Male
  • Location:Lithuania, Vilnius
  • Interests:Programming
  • myCENT:49.19

Posted 20 November 2010 - 10:23 AM

View Postmahesh2k, on 14 November 2010 - 11:51 AM, said:

Never copy content from sources which adds it's own markup. For example if you're copying content from openoffice or word to your static HTML site in body tag. Then make sure you strip out it's editor coding. This code will make more changes to the content.So if you are trying to add neat code to your content then you already ruined it by having extra code from other editors.

I agree, the way I deal with this problem, is I always copy from somewhere and when you paste something, you usually acquire not only text, but formatting too, to avoid it, I just usually paste into Notepad2 with UTF-8 encoding, cut it into where I want and the formating is stripped and only regular text is available. :)




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users