have ne automatically apply syntax highlighting based on filename extension?
21 views
Skip to first unread message
John Gabriele
unread,
Aug 12, 2019, 9:57:18 PM8/12/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to niceeditor
I have a ~/.ne/syntax/haxe.jsf file (for now, just copied the java one), and I'd like ne to apply that syntax highlighting when I open a .hx file. How can I configure ne to do that?
Currently I have to run `^k sy haxe` each time I open a .hx file.
Thanks!
todd_...@unc.edu
unread,
Aug 13, 2019, 6:43:02 AM8/13/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to niceeditor
Be sure the line `Syntax haxe` is in the `~/.ne/hx#ap` file. One way to do that is to invoke the `SaveAutoPrefs` command either from the command line or from the `Prefs` menu after you have (1) loaded a document the name of which has a `.hx` extension and (2) have set the `syntax` to `haxe`. It will save a bunch of other things in the `~/.ne/h#ap` file too, any of which you can remove or change as you want. For example, my `c#ap` contains: