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
« May 2025  
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
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
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   108254
Context Free Art (*.cfdg)   0.31   46074
BBEdit scheme   1.0   18609
JBuilder scheme   .001   18511
ColdFusion scheme   1.0   18044
R Edit Mode - extensive version   0.1   17490
Advanced HTML edit mode   1.0   16226
Matlab Edit Mode   1.0   16088
jEdit XP icons   1.0   15248
XP icons for jEdit   1.1   14312