[Main] [Screen Shots] [Download Info] [Aurora Macros] [Mail List] [Mail List Archive] [Aurora Links]

Aurora Editor Macros

Here are Aurora macros, syntax highlighting objects, and functions written in the Aurora macro language (AML) that may be used to enhance the functionality and appearance of the Aurora Editor. Files are listed in four somewhat arbitrary groups: [file-related macros], [miscellaneous editing macros], [syntax highlighting], and [functions].

Unless otherwise noted (e.g. .zip), all files are plain ASCII text files (this is a Unix system). The "--kdn" and "--by kdn" notes indicate my specific comments, asides, or files (some of the rest of this page is my paraphrasing of what others wrote, but in general this is my original composition) :-) And yes, I do make (relatively) frequent updates here if there are files to add. Check out the changes listed below. Thanks.

--Kent Nassen <knassen AT umich DOT edu>

Also see Steven La's Aurora Page for other Aurora macros not available at this site.

File-Related Macros

DBF File Read Read xBase DBF structures and create comment blocks.

Listfiles v2.2. Macro used to display a list of files being edited WITHOUT displaying the path as well. This makes jumping from one file to the next a matter of typing the first letter(s) of the actual file name, unlike the original Aurora 'filelist' function where the path name prevents you from doing that. By passing an argument to the macro you can display either version of what the other two files provided. Also added are the following enhancements: modified the window title to display the total number of files being edited; added a function to adjust the window size if you're editing a bunch of files. Modified files are marked with an asterisk. Running the macro without arguments will allow you to select the arguments you want. Written by Jim Wilson.

Listfiles Macros v1.0 / Listfiles Macro v2.0 / Listfiles Macro v2.0a / Listfiles Macro v2.1 / All superseded by lstfiles.aml (described above).

Uncompress Files from the File Manager An unzipper basically. It supports just about any command-line archiver/compressor utility. The file 'mydearc.dat' contains the archive utility definitions. By Steven La. (Packaged as a .zip file, 5421 bytes)

Opening Files Shortcut This macro will open up a regular open prompt, but if you type in a predefined file-abbreviation, it will load that file. It needs fewer keystrokes than filename completion or template expansion.

Search All Loaded Files Macro used to search for a string of text in all loaded files. If found, this macro will drop the cursor at the first occurrence in the first file. Written by Jim Wilson.

Super Deletion of Files & Directories This macro deletes the file or directory at the cursor in the current file manager window. This macro will delete entire directories, including all subdirectories and protected files.

An Implementation of Tags for Aurora By Steven La. (Packaged as a .zip file, 4998 bytes)

View File from the File Manager Allows you to view a file in a pop up window from the File Manager before you load it into an edit window. Also allows you to extract a file from a .zip WHILE you're viewing it and then place it directly into an edit window. Bail out at any time.

[Back to Top of this page] [File-Related] [Misc Edit] [Highlight] [Functions]

Miscellaneous Editing Macros

Aurora Fonts (.zip) This implements an ASCII font drawing functionality to Aurora. There are several files, so this macro is packaged as a .zip file (6597 bytes).

Aurora Fonts! (.zip) Aurora Fonts! lets you change the VGA font in Aurora, so the characters on the screen look different. Includes over 50 fonts and Aurora-style documentation. Can be invoked as a funtion call to set or restore the screen font. Call without parameters to open a dialog box with a list of all installed fonts. There are many files, so this macro is packaged as a .zip file (131074 bytes). By M. Ter Louw.

AutoExpand Words v1.1 The AUTOEXPD macro will search backwards through your file and find the first word that would match the character(s) you've typed and then automatically expand that into the full word. It's sorta like what the TRAN.AML macro does, but instead of being static and hard coded like TRAN this one works dynamically. v1.1 is an improved version of the AutoExpand macro: faster, more streamlined, and with a bug fixed.

AutoExpand Words v1.0 Superseded by autoexpandv11.aml.

Clipboard Viewer A macro that will allow you to view the contents of any clipboard in a pop-up window.

Run a Compiler/Other Program It doesn't just compile; it runs anything that you pass in as a command. Gives you a dialog to enter in your command! Pops up a popup with your error and warning messages. Press enter on an error to go to the file and line that is in error. By Steven La. (Packaged as a .zip file, 2109 bytes)

Dynamic Tab Expansion This macro is now included in v3 Aurora distribution. Here it is for people still using v2.x. Running this macro forces the editor to expand tabs in newly-opened edit windows.

Fill Column Block with Numbers This one's now part of the v3 Aurora installation, but for people running v2.x here it is. Quite handy. Similar to a spreadsheet's Fill Range command.

Find Window Differences Finds differences between two edit windows. The windows are tiled horizontally and from the current cursor position in each window, a comparison is made character by character. Stops when a difference is encountered.

Full Text Justification I'm not sure where I got this one. It seems to work just fine. Inserts spaces between words to make each line extend to the right margin.

Highlight a Vertical Line Macro used to highlight a vertical line on the screen similar to the horizontal line used by syntax highlighting.

Jump to New Position (newpos.aml) Jumps to a relative or absolute row or column in the file. Can handle percentages (floating-point numbers are allowed).

Multi-Edit Style Bookmarks (bookmark.aml) Implements a bookmark system like that used by the Multi-Edit editor. While the pop-up window is being displayed you merely type any single letter, number or symbol to set/get a bookmark. Pressing either <enter> or <space> will cause the 'booklist' macro to run, displaying what marks you've already set.

Real Number Division Performs real number division using integer calculations and returns the result as a string.

ROT13 Conversion This macro will substitute the letters of the text in a marked block using the ROT13 method of substitution. Use it once to encode text; use it again to reverse the operation.

Improved Color Selector (.zip) See ALL the colors at once, not just half like Aurora's pre-compiled color selector. Also you can preview what text will look like with the current color selection, and there's some cool mouse-over effects on the buttons as well. Packaged as a .zip file, 2673 bytes). By M. Ter Louw.

Sort Lines on a Key Sort lines based on a key following a character in the line. [I gave this one a shot the other day and it worked as advertised. I sorted a block of lines in one of my syntax highlighting files, keying on the "_" character so that it would sort the public keywords. --kdn]

Window Synchronization This macro allows you to scroll the topmost two windows 'in synch' with each other. Synchronized scrolling can be toggled ON and OFF with <ctrl f3>.

[Back to Top of this page] [File-Related] [Misc Edit] [Highlight] [Functions]

Syntax Highlighting

Note: One thing you will most likely want to do is alter the color scheme in whatever syntax objects you select here. That's normal, or at least I could never resist tinkering with the color schemes. While some of these are my creations, most are not. I've tried to note the source in all cases. For code that came from the Aurora mail list, you will most likely need to delete or comment out ("//") the mail header, signature, and other non-AML text before the file can be compiled and used. Suggestions/improvements accepted, as well as other examples. --kdn

Assembler Highlighting (.zip) Here is a new version of enhanced syntax highlighting macro for assembly language programs for the Aurora text editor. It allows for different colors for mnemonics, registers, assembler directives, and more. Designed for use with the Netwide Assembler (NASM) but will work with other assemblers as well with little or no modification. Several files are included, so it is packaged as a .zip file (6869 bytes). Submitted by <MTerlouw@aol.com> (Thanks! --kdn).

Revised Assembler Highlighting (.zip) A revised and improved version of the enhanced assembly language highlight macro for NASM (and other assemblers). .zip file (3804 bytes). By M. Ter Louw.

Assembler Highlighting II Another assembly code highlighting object. Incorporates the newer opcodes. Submitted by Matteo Baccan (baccan@isanet.it) (Thanks! --kdn).

Awk Highlighting v1.1 This one's for highlighting awk scripts/programs. Added highlighting by type of keyword. Note: I pulled the keywords from the Gawk handbook, so some may not apply to all awk interpreters (which shouldn't be a big problem). --by kdn

4DOS BTM (Batch) File Highlighting 4DOS is a command.com replacement that runs under DOS and Windows. It includes a batch file compilation facility. Anyway, this is a syntax object for highlighting the extended batch language provided by 4DOS. Submitted by Matteo Baccan (baccan@isanet.it) (Thanks! --kdn). See the JP Software Home Page for further information about 4DOS.

Euphoria Highlighting Jim Wilson's syntax highlighting object for the Euphoria programming language. See the official Euphoria homepage for more information such as user contributed programs, tips, how to register, and a downloadable version of this programming language. I looked at Euphoria briefly about a year ago, and while it appears to be everything its creator says it is, I didn't have time to learn another language. Euphoria isn't free, but it's definitely worth a look.

HTML Highlighting & Translations Jim Wilson's setup for highlighting HTML code. Also includes functions to add to your tran.aml file which perform translations for HTML code (you type the first couple characters and the function completes the beginning tag and adds the ending tag). Also requires a simple modification to your config.aml file.

Perl Highlighting v1.1 A syntax highlighting object for perl programming. Keywords pulled from the Perl 5 camel book (hopefully I got most if not all) . Added colorizing by keyword type. Looks much better now. The Perl Language Page provides more information about Perl. --by kdn

Clipper Highlighting Syntax highlighting for Clipper's language. Clipper is an xBase development tool. Submitted by Matteo Baccan (baccan@isanet.it) (Thanks! --kdn). See the Computer Associates site for more information about Clipper and related products.

Python Highlighting v1.0 Syntax highlighting for the Python language. This is a first cut (meaning mostly untested and maybe missing some keywords) which includes a lot of functions and commands. . The Python Language home page is one starting point for learning more about Python, an interpreted, interactive, object-oriented programming language. --by kdn

SAS Highlighting v1.0 Another quick 'n dirty syntax highlighting object, this time for the SAS language (SAS is perhaps the ultimate in statistical packages--see the SAS home page for more information about SAS). This one still needs some work, so I'll update it as I go along. But right now, it does highlight most of a basic SAS command file, so it is probably useful for anyone programming in SAS who uses Aurora (SAS is so huge in terms of number of commands that there is no way this file contains all of them, so it should be modified for how you use SAS). --by kdn

dBSee Template Highlighting Syntax highlight object for dBsee (Database Software Engineering Environment) templates (.tpl). Submitted by Matteo Baccan (baccan@isanet.it) (Thanks! --kdn). The dBsee Home Page has more information about dBsee.

Unix Shell Script Highlighting Syntax highlighting object by Jim Wilson for Bourne shell (sh) script programming. Should be adaptable to other shells.

[Back to Top of this page] [File-Related] [Misc Edit] [Highlight] [Functions]


Aurora Code Bits by Jim Wilson Includes the functions RePositionBlock, SwapCharRight, SwapCharLeft, TopOfParagraph, EndOfParagraph, Search, Occurances, HomeKey, CtrlHome, CtrlEnd, CtrlPgUp, CtrlPgDn, PgUp, CtrlUp, CtrlLeft, CtrlRight, Tab, and ShiftTab.

Customized Status Line This macro adds a customized status line to all edit windows on the desktop, and also to new edit windows as they are opened. The status line can be customized to include data & time, length of current line, position in the file by percentage, column & line cursor is on, hex and decimal ASCII value of current char, and several other items.

Smart Text Reformatting Quoted text formatting for a block or current paragraph. By Ingo B.

Improved PageUp and PageDown Functions Makes page up and down work like the top-of-file and end-of-file keys. With the end-of-file key (ctrl-pgdn), you always get a full page of text when you get to the end of the file. Also, if you are on the first page and you page up once more, your cursor will to go to row one.

Improved Popup Menu An improvement to allow the length of the longest line in the buffer to determine the menu width in the popup menu. One use for this is as a replacement for the popup function in the Clipboard Viewer macro.

Smart Upper/Lower Case Conversion Function Change characters or marked blocks to upper or lowercase.

Titlebar Modification Functions A function that alters the titlebar to show the filename, time, date, position in file, margins, and whether the capslock is on (CAPS) or off (----). Also, the title is automatically resized when you resize the window.

Window Manipulation Incorporates Tiling, Resizing, Cascading, Splitting Windows.

[Back to Top of this page] [File-Related] [Misc Edit] [Highlight] [Functions]

[Main] [Screen Shots] [Download] [Aurora Macros] [Mail List] [Mail List Archive] [Aurora Links]

To Kent's Home Page