# Syntax formatting

**URL:** <https://forum.kirupa.com/t/syntax-formatting/241732>\
**Category:** web dev\
**Created:** [October 17, 2007, 2:15pm UTC](https://forum.kirupa.com/t/syntax-formatting/241732 "2007-10-17T14:15:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![project107](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@project107](https://forum.kirupa.com/u/project107)\
**Post date:** [October 17, 2007, 2:15pm UTC](https://forum.kirupa.com/t/syntax-formatting/241732/1 "2007-10-17T14:15:58Z")

</div>

You know how we use [as] tags for Actionscript here on this board, and it formats the code’s colors? How would I go about making that a possibility on a web page? If I want to offer up some Actionscript code on my web site, how do I format it like this?

```auto

function format(){
trace("I want the color to appear automatically. I'll make the <as> tag if I have to");
}

```

Thanks!
