#104 ✓duplicate
Kenneth

syntax coloring as you type

Reported by Kenneth | December 26th, 2010 @ 04:31 PM

What I did: Type in code…

What I expected to happen: The syntax to be colored as I type.

What actually happened: Any new code is white.

http://akhun.com/seo/skitch/thoughts_controller.php-20101226-163003...

Comments and changes to this ticket

  • mathieuk

    mathieuk January 4th, 2011 @ 11:14 PM

    @rsms: I've been looking into this. This occurs when the relevant src-hilite language file for the file being edited demands an outer wrapper, like php.lang expects code to between <? and ?> :

    state symbol delim "<?" "?>" multiline begin
      # rest of content snipped for clarity
    
      variable = '(?:\$[#]?|@|%)[[:word:]]+'
    
    end
    

    When the highlighter just tries to highlight a new character, it apparently never hits that state and never highlights. That only partly explains it though, when you paste a (for example) variable definition, behind other highlighted code - it is actually highlighted. Other language definitions are affected, like javascript/css within html.

    With - if i'm reading things correctly - a new highlighting system coming up (text-parser-2?) , is it worth it to dig deeper into this, as it seems src-hilite related.

  • Agos

    Agos January 10th, 2011 @ 12:12 PM

    • State changed from “new” to “duplicate”
    • Assigned user cleared.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket

Pages