Syntax Highlighting

My posts now have ActionScript syntax highlighting amoung many others, after adding the WP-Plugin iG:Syntax Hiliter by Amit Gupta.

There are a few issues with Firefox.

1. If you select, copy and paste the text from the thread it will all a ‘#’ character to every other line, which is annoying and messy (i’ll see if i can link this to an AS file).
2. If you select the ‘Plain text’ option in Firefox, a load a whitespace is added. This is still annoying but not as bad.

There is still no support for syntax highlighting in comments but it seems Amit is working on this for the next release.

Also thanks to Chris for helping me with some probs installing it (although the install is easy, I’m just thick).

7 Responses to “Syntax Highlighting”

  1. Amit Gupta says:

    If you select, copy and paste the text from the thread it will all a ‘#’ character to every other line, which is annoying and messy (i’ll see if i can link this to an AS file).

    I didn’t get that when I tested it in FireFox 1.0.7 No support for any betas or anything else!!
    if you mean that line numbers are copied, then that’s FireFox’s problem that it copies line numbers in ordered lists which it shouldn’t!! You’ll be better off using a better browser like IE or Opera!!

    If you select the ‘Plain text’ option in Firefox, a load a whitespace is added. This is still annoying but not as bad.

    again a FireFox problem & its there in Opera too. I’m working on it.

  2. Tink says:

    Yeah someone told me it copied the lines number for them, but i get a ‘#’ character every other line, but im running 1.0.5.

    for instance

    ———————————————–
    #
    package
    #
    {
    #
    import flash.display.Sprite;
    #
    import flash.display.Shape;
    #
    import mx.effects.Tween;
    #
    import flash.util.trace;
    #

    #
    public class MovingCircles extends Sprite
    #
    {
    #
    private var _circles_array:Array;
    #
    private var _movingCircle2:MovingCircle;
    #

    #
    public function MovingCircles()
    #
    {
    #
    super();
    #

    #
    this.initMovingCircles();
    #
    }
    ———————————————–

    I wasn’t moaning bud its cool to have it up and running :)

    I’d would be a nice addition if the panel had a link to the class file to download!

  3. Dan says:

    I would expect it to copy the line numbers. Every other word processing app word.

  4. Josh says:

    I just discovered iG:Syntax Hiliter too. Definately a good tool for my new Flash blog. If you think you had a tough time installing it, you should try modifying it to work with a different color palette and text size.

  5. [...] make pasting code here easy. But I just got the iG:Syntax Hiliter which I found out about here and after five minutes it is working very well and I am very happy with that. Seems a good solu [...]

  6. thing is… that i got a fatal error from wp 2.3.3 when i tried to install that plugin.. any other as comp syntax highlighters for wp?

Leave a Reply