This macro copies the selected text with line numbers to the Clipboard. This makes it easier to post source code for bug reporting or blogging. You have two options to copy lines with line numbers.  Keep line numbers or change to one-base line numbers by setting is_zero_origin=true/false  You can choose to fill line numbers with any characters such as 0.
Text Filter macro by danderson, TextFilter.vbee (5 KB) - This macro implements "text filter" functionality. The selected text in the current buffer (or the entire buffer if no text is selected) will be passed to stdIn for the command specified by the "osCmd" parameter. The originally selected text (or the entire buffer if no text is selected) will be replaced by the output of the command.
USE AT YOUR OWN RISK
Include this macro in another macro using the #include directive. Form an command to call and pass it the TextFilter proceedure as shown in the following example:
MySQL Query Optimizer macro by Yale J. Kaul, MySQLQueryOptimizer.jsee (3 KB) - Converts multi-line queries with multiple INSERT statements to one query with each INSERT separated by commas. This is a common technique in MySQL; don't know about other RDBMS.