jEdit Community - Resources for users of the jEdit Text Editor
Text insertion before a number on 10,000 text lines possible?
Submitted by chris_anda_phot... on Thursday, 5 January, 2006 - 21:25
Text insertion before a number on 10,000 text lines possible?

I figure it could be possible to do it with a macro or action script of sorts however one would need to start from the last line forward as the text inserted will need to be 3 lines or more itself and that would make the line seeking not work properly if started from the beginning.. Below is example of what I am trying to achieve..

111111
222222
333333
444444
555555

turned into this 10,000 times automated in a batch file?

Please post a reply as what application I should be using if any you know of out there?

below is what the end 10,000 lines turned into 40,000 should look like...

SAME TEXT SAME TEXT 111111
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT 222222
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT 333333
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT 444444
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT
SAME TEXT SAME TEXT 555555

If you think I will have do this by hand please also post a reply.. Thanks for reading this.. 2 word comments are fine.. Cheers
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
If I understood what you're t
by cvicari on Mon, 09/01/2006 - 18:01
If I understood what you're trying to do... yes I think jedit+macros is a good choice for you! You can start recording macros doing a repetitive job such as this one, and then personalize them as you want. If you're familiar with Java, you won't have problems in using beanshell, that's the scripting language integrated with jedit
Hope this helps
User login
Browse archives
« September 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   96034
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299