github syntax hilighting

Jacob Carlborg doob at me.com
Fri Jan 28 06:08:30 PST 2011


On 2011-01-27 18:27, Andrej Mitrovic wrote:
> On 1/27/11, Jacob Carlborg<doob at me.com>  wrote:
>> I would guess it takes 10 seconds because it processes the file as a
>> whole. I would guess vim doesn't do that, but I don't know.
>
> I haven't thought of that! Actually Vim's syntax highlighting
> 'algorithm' is customizable. You can set it up to try highlighting the
> entire file, or it can do some magic and scan backwards N lines to
> figure out how to highlight the entire screen. Afaik the D syntax
> highlighting script doesn't scan the entire file at once, which
> probably explains the speed. :)

Hehe, is it anything in Vim that isn't customizable.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list