jEdit Community - Resources for users of the jEdit Text Editor
Auto indent change
Submitted by Anonymous on Thursday, 29 January, 2004 - 12:38
When you press enter the new line will be auto indented to the first previous indented line. I would like to change this so the new line would not be indented if the previous line where not in dented. (The behaviour is somewhat different with text, but I think you get the idea.) Example: If I got this: And press return the next line will be indented, like this: I wouldn't it like this: Hope I got my point through! Thanks!
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
What?
by Brad Mace on Thu, 29/01/2004 - 17:28
It's not very clear what you want. You can enclose text in <pre> </pre> tags to preserve its formatting so we can see your examples.
 
I try again
by Anonymous on Thu, 29/01/2004 - 19:46
The example was a little bit funny Smiling. I try it again, the example (line numbers and comments are not part of the text):
1.    text    // space follow by text
2.|           // caret at the beginning of a blank line
When I hit return in the above example the next line will be like this:
3.    |       // space and caret at the end of the line
I would like no auto indent in this case, because the previous line (2) has no indentation. Like this:
3.|           // caret at a blank line.
Hope I got my point through this time!
 
ok
by Brad Mace on Fri, 30/01/2004 - 16:20
Yes, the indenting code looks for the last non-empty line for its starting point. It would be a trivial thing to change if you wanted to compile jEdit yourself.

Otherwise, I'm now wondering why the indentation of a blank line matters?
 
Re: ok
by Anonymous on Sun, 01/02/2004 - 19:20
When writing code like Java I don’t think the indentation automation style matters (my style or current style). But it has annoyed me several times when wring non code text, I give you two examples bellow. In general I think automation is good, but I should rather do to less than to mush. Used when the user don’t want it is mush more annoying than the benefit of using it when the user wants it. An example is MS Word’s numerous text automations that I rather live without. The plain text examples:
* Text..............................
  ...................................
* Second.....................
  .................
And:
Item 1	15
Item 2	20
       ---
        35
In cases like this and you make some empty lines after the text you repeatedly have to delete indentation.
User login
Browse archives
« April 2024  
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
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293