Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run a blog on programming topics and often post large amounts of source code, with syntax highlighter.

This source code often has few terms repeated multiple times like "printf" or "alert" or anything depending on the language.

Does this spoil the seo ??

The keyword density is definitely affected.

share|improve this question

I publish lots of source code on my website. Google still sends traffic to it.

I tend to limit the amount of code that I embed in a blog post to about 20 lines. Usually it is example "how to use this" type of code. For longer programs, I tend to create a new page and link to it. I'm not sure that that practice helps with SEO, but it seems to make the site more readable.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.