Skip to main content
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Jeff McDowell
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Jeff McDowell ( @jeff_s_mcdowell )

XStandard Support Weighs In On The Color Coding Issue

By on

I have been working on color coding my code samples. Currently I keep the code samples in unordered lists. This gives me great control over the physical formatting (ie. line spacing, text wrapping, margins, etc), but makes color coding very difficult. Part of why I do this is because XStandard support suggested it. I also happen to feel that this is a fantastic way to handle it.

But, on the other hand, I WANT color coding. I figure I would run the problem by the XStandard people as they are the ones who had the original UL idea. They suggest, on output to page, converting the UL to PRE tags and then color coding that code (since it will have not other tags). I am currently messing around this idea, and I know that most of you out there use PRE tags... my problem is that it is just ganky. The line wrapping is less readable, the formatting is poor. I am not crazy about the PRE tags at all.

So, what to do?? Not sure just yet. I am fooling around with doing the PRE tags for my RSS feed and keeping the UL for my on-site display. The color coding itself is still not there though.

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel