FAR3: Macro "Align Block Special" for Editor

Here you can discuss any topic concerning Far macro commands.
farman
Posts: 118
Joined: Thu 03 Sep, 2009 11:32

FAR3: Macro "Align Block Special" for Editor

Postby farman » Tue 07 May, 2013 09:56

So here's another version of an "Align Block" macro for Editor, dedicated to the masters of Macros SimSU, Aidar and Shmuel. Most of the code is stolen from them. A big thanx to you, guys.

This is a specialized version. Mostly doing the same things than the other "Align Block" addons. There are some special additions:
- Autoindent paragraphs with bullets or numbers
- Some special CleanUp and Format functions

The big advantages are, that this macro is well commented (in English :-)) and you can easily fix it to your needs .
The macro seems to work well. If you discover any critical error please let me know.

Have fun.

Last edited by farman on Wed 08 May, 2013 08:02, edited 3 times in total.

Shmuel
Posts: 4906
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 10 times
Been thanked: 118 times

Re: FAR3: Macro "Align Block Special" for Editor

Postby Shmuel » Tue 07 May, 2013 10:24

farman
Thank you for sharing. I'll give it a try later.
-- It seems when the size of code exceeds ~100 lines, attaching the zipped file to the message (along with posting the code) may be good idea.
-- The "DisableOutput" flag does not exist anymore and can be safely deleted.

-- Are you aware that in the lines like the following only 1-st variable is local?
  1. local id_RightMargin=2  id_UseAutoIndent=4  id_IndentFirstLine=5  id_IndentLeft=7

farman
Posts: 118
Joined: Thu 03 Sep, 2009 11:32

Re: FAR3: Macro "Align Block Special" for Editor

Postby farman » Wed 08 May, 2013 06:29

Well, some things in lua seems to be very special...
Thanx, Shmuel.
I've fixed fixed that.

Shmuel
Posts: 4906
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 10 times
Been thanked: 118 times

Re: FAR3: Macro "Align Block Special" for Editor

Postby Shmuel » Wed 08 May, 2013 06:58

farman wrote:Well, some things in lua seems to be very special...

Usually, it looks like this in Lua:
  1. local a,b,c,d = 2,4,5,7


Return to “Macro Commands Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest