适用于BBEdit的Apache配置语言模块8

BBEdit 8is out, and one of its major new features is support for codeless language modules(Previously, BBEdit language modules needed to be compiled plug-ins written in C/C++.)

我创造了一个codeless language module for Apache configuration files(2 KB)It provides syntax coloring for comments and Apache server directive keywords; by default, it claims any file whose name ends with ‘.conf’ or ‘.htaccess’ (or whose name“htaccess的”)。

下载它,解压缩,然后将“Apache Configuration.plist”复制到:

〜/ Library / Application Support / BBEdit / Language Modules /

然后重新启动BBEditConfigure via the Languages panel in BBEdit’s preferences.

Creating codeless language modules is a cinch — each module is an XML property list fileAppendix D in the BBEdit 8 user manual has complete details on their syntax and format.

更新1:I was a beta-tester for BBEdit 8; I put this together a few weeks ago, not in the hour since BBEdit 8 was publicly released.

更新2:添加RewriteBaseto the list of keywords; thanks to Dan Carlson如果其他人发现丢失的关键字,请告诉我。

更新3(2004年9月1日星期三):

  • 该模块现在有一个永久的家在我的项目部分该页面将始终包含最新版本。

  • 添加了100多个缺失关键字The keyword list is now a superset of all server directives for Apache versions 1.3 and 2.0Thanks to everyone who sent me missing directives, but especially to Gregory Ramsperger, who pointed me to the comprehensive list of server directives at apache.org, which I inexplicably had overlooked.

  • 在'.htaccess'文件名后缀中添加了通配符This way, if you open several files named “.htaccess” via Interarchy (or another S/FTP client that supports the Edit With BBEdit protocol), the module claims the files even though in BBEdit they appear with names like “.htaccess#1”.