# LaTeX macros for nedit. # # copyright 2007 Ulrich M. Schwarz # no distribution of modified copies permitted. # # I think it should work to paste this file into the nedit.macroCommands # section of your nedit.rc. What they were smoking when they came up with # that joke of extensibility, I don't know. # Insert Env...@LaTeX:Mod4+E:e:: {\n\ envname=get_selection()\n\ if (envname=="") {\n\ envname = string_dialog("Environment name", "OK")\n\ } else {\n\ set_cursor_pos($selection_start)\n\ }\n\ inde = $column\n\ # FIX: the end{...} isn't indented properly.\n\ insert-string("\\\\begin{" envname "}\\n")\n\ for (i=-2; i