Colour your trace output with FlashDevelop

This one surfaced on twitter today, and I thought it was so useful I’m blogging about it – for my own records as well as for the benefit of anyone else reading this.

When using FlashDevelop (and if on Windows, there’s really no reason to use anything else) you can colour the output of trace statements in the Results manager by using the following syntax:

and it’ll look like this:

Obviously the important part is the number followed by the colon at the start of the trace.

Note that the above colours may be based on your FD colour settings. But it’s still superbly useful :)

Posted on January 5th 2011 at 3:17 pm by .
View more posts in Software. Follow responses via the RSS 2.0 feed.

5 Responses

Leave a comment
  • Antoine Gersant
    January 5th 2011 at 4:41 pm

    I didnt know this way of doing it.

    I’m used to doing :
    import org.flashdevelop.utils.FlashConnect;
    FlashConnect.trace(“Output comment”, i) ;

    where i is any int value between 0 and 4.

  • January 5th 2011 at 4:53 pm

    I have to admit I don’t bother using FlashConnect because I can trace directly to Firebug, so don’t need it. But that’s a nice tip to have added, cheers.

  • December 22nd 2011 at 3:58 pm

    “Note that the above colours may be based on your FD colour settings”

    Where might I find these? I’ve looked through the “Syntax Coloring” dialog and can’t seem to find where these are specified.

    Any help would be greatly appreciated. Thanks!

Make yourself heard