Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

syntax highlighting in templates (vi) HowTo

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


paul at gishnetwork

Sep 27, 2011, 6:34 AM

Post #1 of 4 (171 views)
Permalink
syntax highlighting in templates (vi) HowTo

For those of you who use VI and find that extension-less files such as
interchange templates and variables don't activate syntax highlighting, here
is the trick hinted to me by Peter Ajamian (who I don't want to imply uses
VI himself).

Within the first five lines of the file, put:

[comment]
// vim: filetype=html
[/comment]


Best,

Paul


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


emailgrant at gmail

Sep 28, 2011, 1:42 PM

Post #2 of 4 (162 views)
Permalink
Re: syntax highlighting in templates (vi) HowTo [In reply to]

> For those of you who use VI and find that extension-less files such as
> interchange templates and variables don't activate syntax highlighting, here
> is the trick hinted to me by Peter Ajamian (who I don't want to imply uses
> VI himself).
>
> Within the first five lines of the file, put:
>
> [comment]
> // vim: filetype=html
> [/comment]
>
>
> Best,
>
> Paul

Thanks Paul. Has anyone found a way to deal with the weird vim
highlighting that takes place with (I think) these characters:

>
<

- Grant

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


paul at gishnetwork

Sep 28, 2011, 1:49 PM

Post #3 of 4 (161 views)
Permalink
Re: syntax highlighting in templates (vi) HowTo [In reply to]

> From: emailgrant [at] gmail
> > For those of you who use VI and find that extension-less files such as
> > interchange templates and variables don't activate syntax highlighting, here
> > is the trick hinted to me by Peter Ajamian (who I don't want to imply uses
> > VI himself).
> >
> > Within the first five lines of the file, put:
> >
> > [comment]
> > // vim: filetype=html
> > [/comment]
>
> Thanks Paul. Has anyone found a way to deal with the weird vim
> highlighting that takes place with (I think) these characters:
>
> >
> <
>
> - Grant




You're referring that which is produced like in the query or perl tag... foo < bar?



I think I sometimes put [comment]>[/comment] after any tags that have that in there, as needed. Or was it <!-- > -->. One of those helps a little.



It would be nice if you can set vi to sense [perl] and switch to perl highlighting, and revert upon [/perl], etc.





Paul
_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


emailgrant at gmail

Sep 28, 2011, 2:29 PM

Post #4 of 4 (161 views)
Permalink
Re: syntax highlighting in templates (vi) HowTo [In reply to]

>> > For those of you who use VI and find that extension-less files such as
>> > interchange templates and variables don't activate syntax highlighting, here
>> > is the trick hinted to me by Peter Ajamian (who I don't want to imply uses
>> > VI himself).
>> >
>> > Within the first five lines of the file, put:
>> >
>> > [comment]
>> > // vim: filetype=html
>> > [/comment]
>>
>> Thanks Paul. Has anyone found a way to deal with the weird vim
>> highlighting that takes place with (I think) these characters:
>>
>> >
>> <
>>
>> - Grant
>
>
>
>
> You're referring that which is produced like in the query or perl tag... foo < bar?

Exactly, yes.

> I think I sometimes put [comment]>[/comment] after any tags that have that in there, as needed. Or was it <!-- > -->. One of those helps a little.

Got it, thank you.

- Grant


> It would be nice if you can set vi to sense [perl] and switch to perl highlighting, and revert upon [/perl], etc.
>
>
>
>
>
> Paul

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.