erlang在NotePad++下的高亮

简介: 转自:http://www.roberthorvick.com/2009/07/08/syntax-highlighing-for-erlang-in-notepad/   Syntax Highlighing for Erlang in NotePad++   Update: The de...

转自:http://www.roberthorvick.com/2009/07/08/syntax-highlighing-for-erlang-in-notepad/

 

Syntax Highlighing for Erlang in NotePad++

 

Update: The definition has been updated to include support for atoms, variables and function names as well as additional file extensions. Screen shot and downloadable content have been updated.

Thus far I’ve done all of my Erlang development on Fedora using vim or KWrite (which does a decent job in Ruby mode).

But today I found myself on a windows box and wanted a basic syntax highlighting editor for Erlang that was free and worked on Windows. Oh – and not Eclipse+Erlide. I wanted something small and fast.

I grabbed the “free as in beer” and “free as in speech” editor NotePad++ and created a simple syntax file that is a bit hokey but will serve my needs fine.

Here’s a screen shot …
Windows Erlang Syntax Highlighting Editor

NotePad++ has pretty weak syntax highlighting but was sufficent to do most of what I wanted. Some regex based rules would make this a more robust.

Highlighted entities include

  • Erlang reserved words (and named operators)
  • Variables
  • Atoms
  • function names (same coloring as atoms)
  • Operators
  • Comments
  • Kernal, stdlib, mnesia and odbc modules.
  • Support for *.erl, *.hrl and *.htp extentions

I’ve probably missed several things.

Looks a lot better than nothing and it took all of 10 15 minutes.

If you are using NotePad++ here is the file:

http://www.roberthorvick.com/wp-content/uploads/2009/07/erlangSyntaxDefinition.zip

And here are the instructions on how to install it:

http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Syntax_Highlighting_Sharing

And here’s the instructions on modifying or creating your own:

http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Languages

相关文章
|
3月前
Notepad++怎么对比文件,安装文件对比插件Compare plugin
Notepad++怎么对比文件,安装文件对比插件Compare plugin
746 2
|
测试技术
notepad++安装HexEditor插件查看二进制文件
有时候我们需要分析二进制文件,但是分析二进制文件直接用编辑器查看会出现乱码的情况,本文在 notepad++ 软件上安装一个 HexEditor 插件,可方便分析二进制文件。
501 0
|
人工智能 JSON 机器人
NDD(notepad--)的AI机器人插件制作过程
NDD(notepad--)的AI机器人插件制作过程
|
机器人 Linux 编译器
替代notepad++,notepad--介绍及插件cmake编译
替代notepad++,notepad--介绍及插件cmake编译
|
JSON 数据格式
notepad++安装json插件
notepad++安装json插件
226 0
|
JavaScript 前端开发
JavaScript 技术篇 - 实现一键压缩、格式化js代码实例演示,将js代码压缩为min.js方法,Notepad++工具JSTool插件安装
JavaScript 技术篇 - 实现一键压缩、格式化js代码实例演示,将js代码压缩为min.js方法,Notepad++工具JSTool插件安装
842 0
JavaScript 技术篇 - 实现一键压缩、格式化js代码实例演示,将js代码压缩为min.js方法,Notepad++工具JSTool插件安装
notepad++查看二进制.class文件——HexEditor插件(64/32位)安装教程
最近在学习JVM的时候,碰到需要查看.class文件,这里给大家推荐两种方式:
notepad++查看二进制.class文件——HexEditor插件(64/32位)安装教程
notepad++ 插件推荐——快速定位文件
介绍Notepad++的文章很多,我这里就不赘述了。简言之,是一个轻便的文本编辑工具。结合丰富的插件,可以实现很多功能,可以成为一个轻量级的IDE,用来做脚本开发非常合适。 这里介绍几个插件可以用来进行文件定位。
1714 0
|
XML JavaScript 前端开发
Notepad++中常用的插件【转】
转自:http://www.crifan.com/files/doc/docbook/rec_soft_npp/release/htmls/npp_common_plugins.html 1.4. Notepad++中常用的插件   1.4.1. 插件管理器: Plugin Manager 插件功能:此插件可以帮你管理插件,包括查看当前已经安装的插件有哪些,以及自动帮你下载相应的插件。
2548 0