# Color-Coded Code Styles for Web Sites

**URL:** <https://forum.kirupa.com/t/color-coded-code-styles-for-web-sites/43760>\
**Category:** web dev\
**Created:** [February 25, 2004, 6:43pm UTC](https://forum.kirupa.com/t/color-coded-code-styles-for-web-sites/43760 "2004-02-25T18:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeiferTim](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/seifertim/32/188_2.png) [@SeiferTim](https://forum.kirupa.com/u/SeiferTim)\
**Post date:** [February 25, 2004, 6:43pm UTC](https://forum.kirupa.com/t/color-coded-code-styles-for-web-sites/43760/1 "2004-02-25T18:43:34Z")

</div>

I searched, couldn’t find anything, and wasn’t really sure where to look under, so don’t shoot me if this was already asked and answered… :beam:

I’m going to be working on a site soon, which will have web-pages with AS 2.0 showing on them. I want to have AS show-up like it does in the forum, color-coded, and matching what the actual code would look like. I know I’m going to have to use CSS for it, but how to I implement the code to tell the browser: “if the word is ‘function’, color it Blue…” or whatever? Certainly it can’t be _that_ hard, since Kirupa uses something simlar for this site…

The site I’ll be working on is going to be about “Project Ayumi”, which OBCT, Spirit-Z3R0, and I, plus many others, have been discussing in the “Game/AI Programming” forum, under the “Programming a Personality” Thread. If anyone has any suggestions, or can help solve my problem, please let me know. Thanks! :beam:
