Nmap Development mailing list archives
Modules for vim/emacs
From: Ron <ron () skullsecurity net>
Date: Tue, 2 Nov 2010 20:29:00 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey, In the latest revision of my sample script, I added modelines to the top: http://nmap.org/svn/docs/sample-script.nse Specifically: - -- -*- mode: lua -*- - -- vim: set filetype=lua : - -- The preceding lines should be left intact to help vim/emacs do syntax - -- highlighting Basically, they tell vim/emacs that it's a lus file, despite the extension being .nse. The first thing I do when I start working on NSE on a new box is update my vim syntax file appropriately, but I'm guessing that not everybody knows how to do that so having a hint to the editor that it's a lua file could be handy. My point is, I think this should be added to the top of every script. Unfortunately, the emacs one (the first one) *has* to be the first line in the file. The vim one can go at the bottom or middle or whatever, it doesn't matter where it goes. Opinions? Ron -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkzQutwACgkQ2t2zxlt4g/Rh6QCgkOE6luafSNFyqy1yx+ABaNBu XlMAni7dhY4eok6m06e+RsDklgFI65AI =QAPQ -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Modules for vim/emacs Ron (Nov 02)
- Re: Modules for vim/emacs David Fifield (Nov 02)
- Re: Modules for vim/emacs Ron (Nov 02)
- Re: Modules for vim/emacs Fyodor (Nov 05)
- Re: Modules for vim/emacs Mak Kolybabi (Nov 05)
- Re: Modules for vim/emacs David Fifield (Nov 02)