Code alignment in Geany

Inspired by the Code-Alignment Plug-in in Notepad++, I’ve created a tcl/tk script that aligns your code by characters of your choice.

It turns out that it’s not so difficult but it seems like it didn’t exist.

The Geany has nice feature that it can send out block of text to a command and replace by the output of that command

So, You just need to configure your Geany to run the command “wish codeAlign.tcl”. It’ll pop up a window asking for characters to look for then it’ll align your code nicely.

In the poped-up window, enter the pattern for alignment, regular expression is accepted by entering “regex<space><expression>”

Download codeAlign tcltk script

Leave a Reply

Your email address will not be published. Required fields are marked *

60 − 55 =