Atom package to support Nmap Scripting Engine (NSE) files

Sometimes I use Atom as my secondary editor. I’ve made atom package to support Nmap Scripting Engine (NSE) files. In short, it adds syntax highlighting and snippets to NSE and Lua files in Atom. It is specifically written for writing NSE scripts which are compatible according to Nmap coding style (indentation, soft tabs, etc).

Package is available from the following URL:
https://atom.io/packages/language-nse

Source is available at the following URL:
https://github.com/kost/language-nse

Atom language-nse package

Atom language-nse package

Installation

Installation is simple as launching Setting in Atom editor and selecting Install:

Installing language-nse package in Atom

Installing language-nse package in Atom

Command line installation is pretty straightforward:

apm install language-nse

Usage

Once it is installed, it is automatically active once you open files with .lua or .nse extension.

In case you have multiple packages which supports lua or nse extension, it’s important that you check that NSE mode is active in bottom right corner of Atom editor:

Atom language-nse package - activation

Atom language-nse package – activation

Once activated, you will notice syntax highlighting, but you can also use NSE snippets. For example, if you type nse in editor you will get snippets to choose as illustrated here:

Selecting snippet in Atom language-nse

Selecting snippet in Atom language-nse

If you choose any snippet, it will automatically add that snippet to the active editor window:

Example snippet in Atom language-nse

Example snippet in Atom language-nse

Source

Source is available at the following URL:
https://github.com/kost/language-nse

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.

Originally taken from language-lua from https://github.com/FireZenk/language-lua (author: Jorge Garrido Oval)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: