1

I find myself spending a lot of time when I have to create blog posts with code examples in them. What's the fastest way to do this? Is there a plugin that does it easier and faster?

Example: http://julianomoreira.com/notebook/article/php-mail-and-mac-os-x-mountain-lion

It took me a while. Would you share your workflow?

2
  • Huh? I honestly thought this post was spam for the 5 reads. Can you explain what you did for that site that you found so difficult, and what sort of solution you are looking for? Nov 9, 2013 at 23:56
  • I'm looking for a better way to add code examples to my posts. I'm wondering what people use to add coding examples (html, css or javascript) to a blog posts. Is there an add-on for that? Nov 10, 2013 at 3:45

2 Answers 2

3

If you have Wygwam installed, I'd recommend taking a look at GWCode SyntaxHighlighter.

http://gwcode.com/add-ons/gwcode-syntaxhighlighter

It's served me well for years now, and since it's integrated as a Wygwam toolbar button, it allows you to mix prose and code all in one single field.

Cheers, John

0
2

Checkout the EE syntax plugin from Eric Lamb at Mithra62:

http://devot-ee.com/add-ons/ee-syntax

I think that will help you do what you are looking for. It formats code based on the geshi library and supports a number of different syntax highlighting formats.

1
  • I installed it and tried. It works well but one thing I noticed was if you change the value of lang (lang="php"), as indicated on its website, to something like HTML or CSS then the design breaks. Did you notice it as well? THanks! Nov 13, 2013 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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