Forum Replies Created
- AuthorPosts
- em-likeParticipant
I actually thought a forum like this is there to help others with a problem as quickly as possible.
No one will know EmEditor better than Mr. Yutaka Emura, on stackoverflow he had already described the same solution for this problem.
My reference to this source should therefore help the person seeking help quickly and at the same time avoid wasting Mr. Yutaka Emura valuable time. Every minute Yutaka Emura spends on the further development of EmEditor is worth my time for my answer. But only if the answer will be truly checked.em-likeParticipantPlease Check on stackoverflow if this solves your problem.
stackoverflow ‘document’ is undefinedem-likeParticipantHello Scott Daughtry,
since i had read at your message … semi-colone … , and the confusion may arise quickly, I have reported at short notice on your case. Usually only one script language or only the own macro language can be processed by the editor. EmEditor can handle both vbscript and javascript.
To see if the script still works after 15 years, I copied the commands and removed unnecessary blank lines. As a test I used only a few sample sentences. The script ran without errors. So I can say that it works in general, but I didn’t do any detailed tests. Therefore I can’t say anything about error catching etc.. Maybe Stefan will get back to you in the meantime, as the author can best explain and understand what this script does. Due to time constraints I can’t take a closer look at the script at the moment, as I am on my way to a longer business trip. However, I wanted to briefly share the hint with the two different script languages.em-likeParticipantYes the macro works with the current version.
Did you really perform all steps (1 to 3) as described by Stefan?
What is the semi-colon at the end of the line supposed to do?
My guess is that you did not save the macro as described in point 1. Stefan has clearly described as …vbee save. EmEditor recognizes this as the macro is written in Vbscript. I know a semi-colon at the end only with java script, as file extension …jsee.
Please read also the help, Mr. Yutaka Emura describes also the the possibility to use #language = “ScriptName”.em-likeParticipantIf the macro fulfills all wishes, everything is ok. But since so many questions/comments have been written to my answer, I would like to add the answers here.
For questions of this kind, it is usually very helpful to show your example of the initial data and what the expected result should be.1: EmEditor offers many ways to move multiple cursors to different places.
– A manual way is for example to hold ctrl key and click with the left mouse button to different places.
– With the function Find (Ctrl + F) there is the possibility with “Select All” to select all search terms, I then press “arrow right key” to put the cursors at the end of all results. Now you can choose the automatic numbering or just continue writing.
The video examples on “https://www.emeditor.com/text-editor-features/coding/multiple-selection-editing/” show a small range of what is possible. As you can see, these examples were created several years ago (see version numbers), but in the meantime EmEditor has been extended by many functions, thanks to Mr. Yutaka Emura. A few more possibilities were already mentioned in the first answer.2: Please read the comment of Mr. Yutaka Emura. I mostly use the function “Line Down Extend (Vertical Mode)” “Alt+Ctrl+Down” Extends the vertical selection down one line. This is the fastest way for me when, for example, I don’t want to edit more than one screen at a time.
3: Please look at point 1 the link to the videos.
4. Simple example, the enumeration consists of numbers, but it should be letters. Select all numbers as vertical selection (see point 2 above) and use “automatic numbering”.01 Example …
02 Example …
03 Example …
04 Example …
05 Example …result:
a Example …
b Example …
c Example …
d Example …
e Example …5. As I wrote, press Ctrl key (as long as the area is selected with the mouse. First release the mouse button and “then” the Ctrl key), as usual in spreadsheet programs, e.g. Excel. If the Ctrl key is released before the mouse button, the selection is only duplicated.
em-likeParticipantI assume that you are using the latest version. (Version 22.5.2 EmEditor Professional (64-bit)).
Whereas I have been using the insert numbering function for several generations and I have not had any problems.First, for your second case, adding zeros.
Insert the maximum number of zeros before the first number in the dialog “Insert Numbering – First Line”.
In your example 001.The answer to your first question is a bit more comprehensive, as EmEditor offers a wide range of possibilities.
In general, if the cursor is in more than one place, the “Number of Lines” field will be grayed out and the number of cursors will be inserted.scenario 1:
A word is marked in the text (or the cursor is positioned on a word) and the function “Select All Occurrences” is selected, then the right arrow key is pressed once (the cursors are now positioned at the end of these words), the function “Insert Numbering” is applied. It is even possible to enter e.g. _01 at “First Line”. This way all these words will be numbered consecutively with _01. (Test_01,Test_02,Test_03 …).scenario 2:
With the function “Vertical Selection” the cursor can be placed e.g. at the beginning or end of the lines. The numbers will now be inserted at these positions.Scenario 3:
The cursor is placed e.g. with pressed Ctrl key and the left mouse button several times. As already mentioned several times, the numbers are now inserted in these places.scenario 4:
If a text block is selected in “Vertical Mode” e.g. with Alt key and mouse and then the right or left arrow key is pressed (depending on where the numbers are to be inserted), the numbers can now be inserted.Important, if a text or text block is marked and the function “Insert Numbering” is selected, the marking is replaced with the consecutive number. However, if the number is to be inserted and the selection is not to be overwritten, the cursor must be displayed as a line. The easiest way to do this is to use the right or left arrow key (depending on whether the numbers should be at the beginning or the end).
Please also check if you are in “Insert or overwrite mode”.
EmEditor offers another possibility, which is even faster in some cases.
Select a number (mark this), at the right lower corner of the marking a square appears, press Ctrl key and drag this square downwards with the mouse. Analogous to Excel, the numbers are inserted continuously.Please let me know if this answers your questions.
em-likeParticipantHello,
after install EmEditor v21.4 beta 4 (21.3.904) the place where the buttons were before, is free now. I searched in the “Tools – Customize Toolbars…” the Sort toolbar unsuccessful. By “Special Toolbars” I see “CSV”. In context menu of toolbar’s I see the point “CSV/Sort” I can’t see a single “Sort” toolbar. When I choose this point “CSV/Sort” it show me the CSV toolbar with free space (sort buttons was before).em-likeParticipantV20.9.903 and V20.9.904
Test with a logfile (for this test it have to be at least lines for several pages, my testfiles has ~10000 and more than 300000 lines)
test 1:
in Customize Markers \ Marker List
1. one Marker from the list is enabled
2. open the file (logfile)
-> the Marker is highlighted (it’s ok)
3. disable this Marker in Customize Markers \ Marker List (no one is enabled)
-> the Marker is still highlighted (it’s not ok)
4. scroll down ~ one page
-> after this visible page there is nothing highlighted in subsequent lines ()
5. scroll up back to the line what i saw by begin
-> the Marker is still highlighted the page where i saw on begin ()
6. scroll down several pages
7. scroll up to first page
-> nothing highlighted (it’s ok)A comparable behavior i get when no markers are disabled and I enable it. On the visible page no highlighted Markers, sroll several pages down and up again to the first page, all Markers highlighted. I looks like the enable/disable of Markers works only on lines where not visible at moment by make this change (cache/buffer problem).
The same behavior I have with “Auto Marker” (a very helpful function is for me). Nothing highlighted on visible page, only by scroll up/down several pages.
test 2:
1. open a file (in my case logfile with more the 10000 lines)
2. sroll down (in my case line 1000)
3. select a word (option “retrieve word at cursor” is not enabled)
4. sroll up
-> selected word is highlighted from line ~ 765 to line 1
5. scroll down
-> now selected word is highlighted from line ~982 to end of file
6. sroll down to line ~ 1300
-> now selected word is highlighted from top to end of file (it’s ok)
7. sroll to line 1000, select a other word
-> new word is not highlighted on this page, first seleted word is still highlighted
8. swroll down
-> old selected word is highlighted up to line 1039, after line ~ 1040 the new word is highlightedFor the tested tests, more or less side changes were necessary to see this behavior
With smal files (only some lines, less than one page) “Auto Marker” not working at all (scrolling up and down not posible).I test it also whit disable and enable “use directwrite”.
em-likeParticipantIf I scroll down on a file (fore example some lines or pages) with mouse wheel an try to scroll up (back) the it jumps ~50 lines down. I use a logitech mouse and with each step scroll down it scrolls 3 lines down. Witch each step up, it scrolls 49 lines down.
One test is:
– new file
– write 10 lines (or press 10 times return, so 10 empty lines there)
– scroll with mouse wheel up
-> the view of document jump to the end of file, the document show now only the last line.em-likeParticipantAfter install EmEditor v19.9 beta 2 (19.8.92), no file open direct by double click. The EmEditor came to front and open a new Untitled-xx.txt
From commandline without parameter (“EmEditor.exe” “filename”) it is the same. Also from emedtray.exe with “new and past” it doesn’t work. I tested with “EmEditor.exe” / “filename” and it works. It works with parameter and also with only an slash. - AuthorPosts