FarColorer: How to add another filename extension to be recognized for a specific syntax?

446 views
Skip to first unread message

LigH1L

unread,
Jan 22, 2016, 1:19:27 PM1/22/16
to Colorer
No replies in the Far manager forum yet, so I have to ask here too...

I would like to add the extension ".vpy" (VapourSynth video frameserver scripts) to the group of filename extensions recognized as using the Python syntax highlighter. Is that easily possible for the FarColorer plugin? Or would I have to edit files inside the base\hrc\common.jar archive?

Aleksey Dobrunov

unread,
Jan 23, 2016, 1:53:59 AM1/23/16
to col...@googlegroups.com
Hi.
edit far\Plugins\FarColorer\base\hrc\proto.hrc

change
<prototype name="python" group="main" description="Python">
<location link="jar:common.jar!base/python.hrc"/>
<filename>/\.(py|pyw|pys)$/i</filename>
<firstline weight='2'>/^\#!\S*.+python/</firstline>
</prototype>

on
<prototype name="python" group="main" description="Python">
<location link="jar:common.jar!base/python.hrc"/>
<filename>/\.(py|pyw|pys|vpy)$/i</filename>
<firstline weight='2'>/^\#!\S*.+python/</firstline>
</prototype>


Aleksey.
> --
> You received this message because you are subscribed to the Google Groups
> "Colorer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to colorer+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

LigH1L

unread,
Jan 23, 2016, 3:18:38 AM1/23/16
to Colorer
Am Samstag, 23. Januar 2016 07:53:59 UTC+1 schrieb ctapmex:
Hi.
edit far\Plugins\FarColorer\base\hrc\proto.hrc  

Works well, thank you! 
Reply all
Reply to author
Forward
0 new messages