ActionScript to HTML

Hi everybody,

Is there any way I can do the following ??

I want the script in the Action Panel to be exported to HTML, so that I can use that HTML to again load that inside a text field.

I want the HTML to be exported with following options,

  1. Code should be neatly formatted.
  2. Syntax Highlighting.

Or is there any components or any other way I can do that.

The main purpose of the above is for the tutorials section for my website.

Thanks.
Kannan.