The one thing that's always difficult is is code highlighting. I have tried many different syntax highlighters and usually have quite a bit of trouble making them work properly and embedding code just takes too long. But we all want to see the actual code in the page so I generally make that effort.
I found that pastebin.com provide a really good service and I knew you could share code via a URL but I didn't know they had an embed option which works perfectly.
Here is a demo:
And here is what I need to paste into the wizywig editor in Blogger:
Just use the "Embed" link to get the code and scale the height to match the length of the code block.
There you go embedded code. Now if you/I were running on a CFML engine I'd investigate a custom tag
Enjoy.
thanks for posting this, this is exactly what I've been after!
ReplyDeleteHi, do you a good guide on how to embed coldfusion textboxes in html and output in my desired styling?
ReplyDelete@neo I'm not really sure what you mean can you provide more detail or an example.
ReplyDelete