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
« October 2014  
MoTuWeThFrSaSu
 
1
2
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24
25
26
27
28
29
30
31
 
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   47004
Context Free Art (*.cfdg)   0.31   37102
JBuilder scheme   .001   11375
R Edit Mode - extensive version   0.1   11297
BBEdit scheme   1.0   10940
ColdFusion scheme   1.0   10930
Advanced HTML edit mode   1.0   10749
Matlab Edit Mode   1.0   10615
jEdit XP icons   1.0   10073
XP icons for jEdit   1.1   9913