TextPad Search  |  Contacts  |  Home   
add-ons
Utilities  |  Clip Libraries  |  Dictionaries  |  Macros  |  Syntax Definitions

 

Last updated: 16 April 2013.

These add-ons to TextPad are made available on an as-is basis. They are free and unsupported, although we will endeavor to fix any bugs.

We gratefully acknowledge these contributions from our users, who are credited below. Please let them know if you find their contributions useful.

If you would like to make your own contributions, please send them to support@textpad.com.

Instructions:

After you have downloaded one of these files, extract its contents into the SAMPLES subfolder of your TextPad installation folder, then add the macro to your Macros menu as follows:

  1. From the Configure menu, choose Preferences.
  2. Select "Macros" on the Preferences dialog box.
  3. Select the macro from the list of available macros.
  4. Click Add.
  5. Click OK.
Name: Description:
ActionScript Macros for scripting ActionScript. You can create shortcuts to them for a powerful scripting-environment.
Contributed by Mark Bensch, 27 March 2002
Auto Complete A macro for code completion.
Contributed by Jose, 15 May 2003.
Auto Complete A macro that auto-completes the word you're typing, based on the last word that starts with the same thing. It uses the copy/paste buffer, so any earlier contents of that buffer will be lost. Unexpected results occur if the word you're typing doesn't exist earlier in the document.
Contributed by Mark Schnitzius, 22 January 2002
Binary-Hexadecimal Searches for binary numbers (max. 64 bit each) in the current selection and replaces each of them by its hexadecimal value. The selection should not contain the tilde character (~) or a sequence matching the expression [01]+[oi][01]+ as these will likely cause unwanted results. Apart from that all other characters different from [01] are left unchanged, but the safest way is to select one number at a time.(Uses POSIX RE).
Contributed by Anja Schaffhirt, 11 August 2004.
Cadorsoft Generate Timestamp Macro that Generates timestamp - version number - in format of YYYYMMDDHHmm, where YYYY stands for YEAR, MM for MONTH, DD for DAY, HH for HOURS and mm for MINUTES. Useful for document maintenace tasks.
Contributed by Marek Mand, 28 April 2002.
Carriage return remove A macro that removes all carriage returns. Useful for copied in XML content, that is broken indiscriminately across multiple lines that we want to use XmlTidy on. This concatenates it all together so that XmlTidy can do its job without complaining.
Contributed by Doug Porter, 15 May 2007.
Case Conversion Two macros that will convert your text to upper and lower case.
Contributed by Lance S. Darby, 24 October 2000
Clear Leading Space This macro uses a simple regular expression to clear all leading space on lines.
Contributed by Pete Smith, 6 August 2004.
COBOL Two macros for commenting and uncommenting COBOL source code.
Contributed by Lutz Galinat, 12 November 2002.
Comment The 4 comment/uncomment macros will comment in/out lines of javascript or asp. To use the comments just highlight the rows to be commented out (from one row before the first) and click the macro.
Contributed by avron polakow, 12 August 2003.
Comment Two macros to comment and uncomment selected code with #s. Suitable for Perl and other shell scripting languages.
Contributed by Aditya Sanghi, 2 November 2000
COMMENT BLOCKS Two macros to comment and uncomment selected code. Suitable for Clarion http://www.softvelocity.com
Contributed by Ayo Ogundahunsi, 6 November 2003.
Comment Blocks These macros are for commenting and uncommenting SQR programs ("!" at the beginning of each line). A feature of these macros, is that if you comment a block of text that already has comments, it will add a second exclamation mark to that line, so that when you "uncomment" the block, it will retain the original comment.
Contributed by Don Barclay, 28 April 2002.
UPDATE
Comment Blocks 4
This macro eases the task of writing comment blocks in programs, by inserting the preamble characters that precede each line. Regard it as an intelligent auto- indent macro for TextPad 4.
Contributed by Patrick Chandler, 27 April 2001
Comment Blocks 3 This macro eases the task of writing comment blocks in programs, by inserting the preamble characters that precede each line. Regard it as an intelligent auto- indent macro for TextPad 3.
Contributed by Patrick Chandler
Convert ISO-8859-2 to Win-1250 Two macros for converting ISO-8859-2 to Win-1250 (Central European), and the reverse.
Contributed by Christopher Polewiak, 2 January 2005.
Duplicate Lines This macro duplicates the current line.
Contributed by Frank Fesevur, 9 May 2000
Duplicate Lines A Macro that duplicates the current line without loosing the clipboard data.
Contributed by Daniel Tome, 11 May 2007.
Eclipse like behaviour A couple of macros that should be assigned to alt+up and alt+down to make Textpad work like eclispe does.
Contributed by teknopaul hinds, 3 March 2012.
Email cleaner Copy and paste forwarded email into Textpad and this macro removes all the greater-than characters and attempts to clean out extra line breaks etc. Run twice for jokes that have been round the world 3 times already!
Contributed by Pete Smith, 6 August 2004.
Email macros 1) Make_Horz_List_From_Ver.TPM : It makes comma seperated email string from vertical list of email ids.
2) Split_Comma_Sep_List_To_Ver.TPM : It makes list of email ids in vertical format from comma seperated email string.
Contributed by Shantanu Bhamare, PMP, 6 April 2011.
Encapsulation This macro will help Java programmers (who observe encapsulation), and especially anyone who writes JavaBeans.
Contributed by Joshua Seigler, 7 February 2001
FORMAT TX Miscellaneous Handy Textpad Macros For Formatting
Contributed by Susan Whittington Hunt 10 August 2001
Find-non-ASCII If you need to clean your text files of non-ASCII characters. This macro finds any non-ASCII and non-printable ASCII chars (it ignores form feeds and tabs).
Contributed by Michele la Monaca, 14 May 2004.
Geodimeter These Macros work on files created by Geodimeter Land Surveying instruments They convert the data from a one item per line basis, to one complete observation per line, and back again.
Contributed by Wyn Sleeman, 10 November 2000
Hexadecimal These macros add all entries in a list of 8 digit hexadecimal numbers. Please see Readme.txt for more information.
Contributed by Pranav Swaroop, 30 May 2010.
Hexadecimal-Binary Searches for hexadecimal numbers (unlimited range) in the current selection and replaces each of them by its binary value. If the selection contains characters different from [0-9a-fA-F] these are left unchanged.(Uses POSIX RE).
Contributed by Anja Schaffhirt, 11 August 2004.
Hex Cruncher This macro finds 6-digit hex codes (i.e., RGB color codes) that consist of 3 doubled digits, and replaces them with the equivalent 3-digit hex code. Especially useful in stylesheets with transition effects.
Contributed by Andrew Roazen, 29 October 2002.
HTML Accent conversion Two small macros for Spanish users that make convertions from accents, and HTML escape codes.
Contributed by Octavio Fornes Pimentel, 27 March 2002
HTML Change case Four macros to convert HTML tags and attributes to lower or upper case. These macros can handle multi-line tags and attributes, and even enclose between quotes unquoted values for the attributes. They can processes hundreds of HTML scripts efficiently and with ease in just a few seconds, depending on your processor. The macros can process 10-15 average size HTML sources per second.
Contributed by Edgardo R. Del Rosario, 10 August 2005.
HTML convert Four macros for quickly converting a string in specified format to a working HTML link. Readme.html file included. The macros are based on Jeff Epstein's.
Contributed by Gautam Patel, 4 December 2003.
HTML ENCODER This macro encodes ANSI characters into their HTML equivalents.
Contributed by Michael Langford, 10 August 2001
HTML Links It takes a plain Html file and produces the links for the targets one chooses at the top of the file.
Contributed by Carmel Grech
HTML Lower It changes active HTML Tags and keywords to LowerCase without modifying keyword parameter values.
Contributed by Randall McDougall, 12 February 2001
HTML-Enclose Text blocks This macro tries to wrap proper sentences in HTML Paragraph Tags.
Contributed by Peter Lamm, 9 July 2009.
HTML, single-line commenting & more Updated for TextPad 4.4! A large collection, with comprehensive html documentation included. Macros for easy creation of HTML and Cold Fusion tags, single-line commenting, text manipulation and general navigation.
Contributed by Jeff Epstein updated 9 November 2000
HTML Special Characters A macro to convert special HTML characters in normal documents to their equivalent HTML-code.
Contributed by Roelof Berkepeis
NEW
HTML Special Characters
This is a macro that will change the most common special HTML characters back to the actual character.
Contributed by Martin B, 1 April 2013.
HTML Table 1 Macro to convert tab separated columns of plain text into HTML tables.
Contributed by Klaus Daube
HTML Table 2 Another Tab2HTML table macro, with a short description of how it works, so you can create your own to suit your needs.
Updated by Michael Cox
JavaScript JavaScript macros and a clip library.
Contributed by Nicolas Delsaux
Java Tool This tool macro prompts user for parameters with the default of the full file path. See text document for full explanation.
Contributed by Alex Savitsky 10 August 2001.
Java Comments A block comment macro for java, c and c++.
Contributed by Daniel.Thompson 14 December 2001.
Java mail This is a macro that searches for email addresses and turns them into JavaScript code to hide the address from spam harvesters.
Contributed by Michael Cox, 16 May 2003.
Java String This macro turns a document, assumed to be an XML document, to a single line quoted Java String.
Contributed by Martin, 26 April 2010.
Line Indexer Macros to bookmark lines and list them in a Command Results window so that a double-click finds the appropriate line in your document. Full setup instructions provided.
Contributed by Chris Willmot
Make String A macro to make string (VB string) from the selection.
Contributed by Marco Acorte, 30 April 2002.
Manglemailto A macro to make a javascript-mangled email address of a highlighted email address, for all mailto: addresses on a page.
Contributed by Michael Cox, 16 May 2003.
Markup Case Changer A macro to that changes SGML/XML Tags and keywords either to Lowercase or Uppercase without modifiying keyword parameter values. Based upon the macro, "HTML Lower".
Contributed by Alexander Lisibach, 2 May 2003.
NC Machine Tool NC Machine Tool Macros
Contributed by David Ward 23 June 2001
NT NET FILES EDITOR When run, this macro automatically opens the following files from C:\windows\system32\drivers\etc: hosts, lmhosts, networks, protocol, services. You can then easily examine and modify them, without manually searching for, and opening each of these configuration files.
Contributed by Alex Angelopoulos 19 October 2001.
Net File Open Textpad macro for Windows Net File Open. Instructions included with download.
Contributed by Joey Officer, 3 May 2004.
Reformatting Six macros to remove unnecessary spaces, tabs and lines, and to join blocks of lines into paragraphs. Very useful for reformatting imported texts that lack a proper layout.
Contributed by Gerrit Kiers
Replace non ASCII Macro to Replace Non-ASCII Characters (NFO file clean-up, etc.)
Contributed by Don Wallquist, 28 September 2005.
SAVE Two macros that perform the following functions: SAVE_SELECT ALL_COPY, and SELECT ALL_DELETE_PASTE_CTRL+HOME.
Contributed by Kitch Pilapil, 15 August 2004.
Select All Two macros that perform [[SELECT ALL]] and [[COPY]], and [[SELECT ALL]] and [[DELETE]].
Contributed by Kitch Pilapil, 1 September 2004.
Select All/Cut Various CUT and COPY macros. See Readme.txt for full information.
Contributed by Kitch Pilapil, 21 September 2004.
Single Line Comments A collection of macros to insert and remove single line comments (e.g.: //, REM, --).
Contributed by Douglas Crews
Special Characters Running this macro in a document SELECTION will convert the following special ASCII-characters to their HTML code.
Contributed by Roelof Berkepeis, 2 October 2000
Special Characters Macro which will convert all special ASCII characters to their HTML entities.
Contributed by O. Dag, 14 May 2002.
Tab A TextPad macro for converting tab separated values to "body" of table markuped by elements <row> and <entry>. Values to be converted must be marked as block.
Contributed by Pavel Zampach, 22 November 2000
Toggle C++ Comment This macro comments/uncomments (toggles) highlighted C++ lines when the macro is executed. It adds a // if the line doesn't begin with // and removes the // if the line does begin with //.
Contributed by Pranav Swaroop, 9 May 2010.
TPM A TextPad macro for html comments. Works on block selection.
Contributed by Vinod Nair 16 July 2001
Underline A TextPad macro which underlines the current line with dashes.
Contributed by Ari M. Weinstein
Unweb A simple little macro called "unweb" that just substitutes the ascii characters for the html codes for those characters in selected text.
Contributed by Michael Cox, 11 January 2006.
URL See Textpad macros for ensuring web URL's are visible in plain text files, by inserting http:// before www.
Contributed by Susan Whittington Hunt 10 August 2001.