jEdit Community - Resources for users of the jEdit Text Editor
Code Alignment
Submitted by CJreige on Wednesday, 1 June, 2011 - 21:55
Is there any way to vertically align code by any character such as equals and period?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Edit Mode Definition
by Robert Schwenn on Thu, 02/06/2011 - 19:13
Indenting is defined on a per Edit Mode basis in the mode definition file. Take a look at the User's Guide at:
- http://www.jedit.org/users-guide/writing-modes.html
- http://www.jedit.org/users-guide/mode-tag-props.html

Especially look for properties "indentOpenBrackets" and "indentCloseBrackets".
 
Code Alignment
by CJreige on Tue, 16/08/2011 - 22:45
Hi Robert.

Thanks for the response. Actually, though, I was looking for a way to align code vertically that goes beyond indentation. I'd like something that takes the selected lines of code and:

1) aligns the beginning of the lines.
2) adds spaces within each line to make the equals sign line up.

I hope that makes sense.
 
Regular Expressions
by Robert Schwenn on Wed, 17/08/2011 - 18:48
Hi,
I don't know such a feature, but You could try Search &Replace using Regular Expressions, i.e.:

Search Text: ^[ \t]*(.*)\s*=(.*)
Replace with: $1\t= $2

Robert
User login
Browse archives
« September 2014  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   46723
Context Free Art (*.cfdg)   0.31   36958
R Edit Mode - extensive version   0.1   11163
JBuilder scheme   .001   11111
BBEdit scheme   1.0   10676
ColdFusion scheme   1.0   10664
Advanced HTML edit mode   1.0   10617
Matlab Edit Mode   1.0   10484
jEdit XP icons   1.0   9941
XP icons for jEdit   1.1   9832