Mikael Bystrom wrote: >> On Fri, Dec 19, 2008 at 10:49 PM, David <[email protected]> wrote: >> Is there any way to get some basic syntax highlighting with css? >> example with current code; >> http://dwabbott.com/css_pre.html >> > > David, what do you mean with "basic syntax highlighting"? You mean > color coding or just as the example you gave? > > I'd write this as > > pre{ > background-color: #DDD ; > border: 1px dashed #D43D1A; > padding:10px; > } > > code { > font-family: monospace; > font-size: 1.1em; > } > > as I'd like to distinguish the blocklevel pre element and the actual > inline written code with the code element. > > > The current example has the desired effects; http://dwabbott.com/css_pre.html thanks -david
-- Powered by Gentoo GNU/LINUX http://www.linuxcrazy.com pgp.mit.edu ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
