EmEditor (text editor) Forum Index
   Macro Samples
     Toggle ALL marks at once (Space Tabs EOL EOF)
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Stefan
Posted on: 5/21/2012 4:23 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 261
Toggle ALL marks at once (Space Tabs EOL EOF)
Often i want to see more
then one kind of mark (Space, Tab, Line ends, End of file)

and therefor i have to go three/four times to the menu "View > Marks"
to enable or disable only one mark kind at each visit.


Here is an simple macro to toggle (enable/disable)
the view of all kind of marks at once:

//Shows or hides space marks.
	editor.ExecuteCommandByID(4535);
//Shows or hides the tab mark.
	editor.ExecuteCommandByID(4534);
//Shows or hides return marks.
	editor.ExecuteCommandByID(4532);
//Shows or hides the end of file mark.
	editor.ExecuteCommandByID(4533);




I vote to make this an default feature of the "View > Marks" menu


Or maybe add Space marks to this command?
//Toggles new line, EOF and tab marks.
editor.ExecuteCommandByID(4370);

Then i would even use the toolbar button "Marks"


.
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文