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?

| improve this question | | | | |
  • 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? – Adrian Macneil Nov 9 '13 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? – jmdesigner81 Nov 10 '13 at 3:45
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

| improve this answer | | | | |
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.

| improve this answer | | | | |
  • 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! – jmdesigner81 Nov 13 '13 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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