2 Replies - 1618 Views - Last Post: 02 April 2005 - 03:10 AM Rate Topic: -----

#1 pioSko  Icon User is offline

  • still.dreaming
  • member icon

Reputation: 23
  • View blog
  • Posts: 1,888
  • Joined: 06-June 03

ActionScript Code Highlighting

Posted 01 April 2005 - 07:26 AM

Yo!
I'm trying to write a PHP script that will convert actionScript in a file (script.as) to display as color coded script on screen.
Just like pasting code in snippets, which later displays the code in color.

Obviously no problems opening and reading the file.

I was wondering if you guys know of a tutorial/site which shows how to do that. How did you guys do it?

I'm willing to write the code and have a "sort of" running version. But it's heavily bugged, so.. I wanna get some background info... I want it to mark-up the script using CSS and <span>, that way I can then easily display it in flash.

However, it would be cool if there were a script already available.. to read from of course ;)

This post has been edited by skyhawk133: 02 April 2005 - 01:17 AM


Is This A Good Question/Topic? 0
  • +

Replies To: ActionScript Code Highlighting

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1866
  • View blog
  • Posts: 20,278
  • Joined: 17-March 01

Re: ActionScript Code Highlighting

Posted 02 April 2005 - 01:15 AM

Man, I just about missed this topic... anyway

PHP Code Cabinet is what we started with, but we edited the hell outta it and even replaced the highlighting engine with Geshi. Geshi is probably the easiest since it's just called from a function, you pass it the text and it returns the text with span tags around the tags.

Links:
PHPCodeCabinet: http://phpcc.mtsdev.com/
Geshi: http://qbnz.com/highlighter/
Was This Post Helpful? 0
  • +
  • -

#3 pioSko  Icon User is offline

  • still.dreaming
  • member icon

Reputation: 23
  • View blog
  • Posts: 1,888
  • Joined: 06-June 03

Re: ActionScript Code Highlighting

Posted 02 April 2005 - 03:10 AM

whoa... thanks! :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1