I regularly use BBEdit to edit Verilog, VHDL, Scheme code and others like these.

For most of the files suffix mapping works ok for me.
But there are setup files for EDA software that I use which do not comply with suffix conventions. E.g. some hidden rc files like .avntrc etc cannot be mapped to Scheme mode even if specified in the prefs as ".avntrc" suffix. I ALWAYS have to switch manually.
This REALLY is a pain in everyday work.

I searched the archives and learned that in some cases BBEdit greps the shebang line e.g. #!/bin/sh to determine Shell, Perl, etc modes. Why can't this be extended to more general usage like it is done in editors like nedit where you can specify grep pattern to scan the first lines of the file.
In my case I regularly insert a comment in the first line like
; ### scheme ###
and it works perfectly in nedit.

In BBEdit everything is already implemented as you can specify exactly these pattern in file filters for multi-file searches.
So why not also use this for language recognition?

If I missed something I apologize.
If you have a solution without a lot of additional scripting I would be glad to hear.
If that would become a built in feature, perfect!

Thanks
Armin
---
Fraunhofer Institute IIS --- Home of MP3


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to