My favorites | Sign in
Project Home Downloads Issues Source
Project Information
Members
Featured
Downloads

This is my SciTE bundle with extensive support for Lua programming, including debugging and a lint-based highlighter.

I dedicate this to Tibi, to help smooth his transition from beloved, reliable Delphi to mysterious and fascinating Lua. Now if I could only find a nice GUI designer :)

Focus and limitations

  • only for Windows
  • extensive support for Lua programming (debugging, smart highlighting)
  • highlighting, editing and other basic features for PHP, Python, HTML (+css, js), SQL, Apache conf files, Windows batch files, Unix bash files (runnable on Windows with MSYS) and SciTE properties files.

Download

Download the zipfile from the Downloads section and unpack it.

Alternatively, you can use Mercurial:

hg clone https://scite-for-lua.googlecode.com/hg/ scite

Installation

Install the fonts from the fonts directory (copy paste them to your Windows Fonts directory).

Rename user\SciTEUser.properties.sample to user\SciTEUser.properties, open it up and edit lua.directory to point to your Lua bin directory.

Note: You can also use the Lua bundle that comes with LuaRocks, but note that in LuaRocks, the Lua interpreter is lua5.1.exe, not lua.exe. Just copy (or symlink) it to lua.exe in the same directory.

Customization

Edit SciTEGlobal.properties (you can press Ctrl + Shift + Numpad[*] to fold all the sections at once).

Things you might want to change there:

  • change font=font:Courier New,size:10 if you don't like the default Fixedsys
  • replace theme.black=1 with theme.white=1 if you don't like the default black color scheme; if you use Scintillua lexers, set lexer.lpeg.color.theme=white instead.
  • change the lexer property in lua.properties from lua to script_lua, if you want to try out the quite sophisticated (albeit sometimes slow and annoying) LuaInspect highlighting.

What's included

SciTE

  • SciTE-Ru, 2.2.3.89 checkout and buit 13dec2010
  • got it with: svn checkout http://scite-ru.googlecode.com/svn/trunk/ scite-ru-read-only
  • built with MinGW (GCC 4.5.0)

Fonts

  • Fixedsys Excelsior 3.01 Unicode, taken from here
  • Lode Font, taken from the Gobolinux CD

Extensions

  • LuaInspect, 15dec2010
    • it's in extensions/lua-inspect
    • got it with git clone https://github.com/davidm/lua-inspect.git on 15dec2010
  • ExtMan, with extensions from LuaInspect and SciteDebug
    • it's in extensions/extman.lua
    • got it from http://math2.org/download/extman.lua per LuaInspect requirement
    • moved extensions/scite-debug/extman/scite_lua to extensions/scite_lua
    • moved extensions/lua-inspect/extman/scite_lua to extensions/scite_lua (overwriting)
  • Others
    • backup_file.lua - creates backup files in %TEMP% on file save
    • lua_modules.lua - make Lua modules available from a common directory (default is extensions/lua-modules)

Lanugage support

  • themed highlighting for Lua, luainspect, Python, SQL, text, C/C++, html (incl. embedded Javascript, php, Python), js, css, bat/cmd, sh/bash, props, conf, errorlist.
  • Lua 5.1 autocompletion API, abbreviations, go/build commands, etc.
  • php autocompletion API
  • Python 2.5 autocompletion API from SciTE-Ru, settings, go/build commands
  • ECMAScript 1.5 autocompletion API
  • SciTE config files: differentiated highlighting for all known scite properties coming from SciTE, SciTE-Ru, and extension modules
  • HTML tidy (F5 to check, Ctrl+F7 to fix on html files)
  • CSS tidy (F5 to check, Ctrl+F7 to fix on css files)
  • Windows batch/cmd files (Ctrl+0 to run selection)
  • Unix sh/bash files runnable on Windows with MSYS (Ctrl+0 to run selection)

Other changes

  • modularized SciTEGlobal.properties using sections and imports
  • added a simplified color theming and applied it in all supported language files
  • Ctrl+1 to git diff the current file, Ctrl+2 to hg diff - works on all file types

Changelog

Issues, Bugs

  • prompt.lua breaks (disabled)
  • select_block.lua interferes with normal selection (disabled; Ctrl+Shift+Down would be nice)
  • see the full list

Todo, maybe someday

  • add more extensions from SciTE-Ru
  • Ruby support (but I don't use Ruby)
  • marinate neptunian slug for dinner
  • kill all humans

Feedback

Email me at cosmin.apreutesei@gmail.com to add you to the list of committers.
Source control is done with Mercurial.

Powered by Google Project Hosting