EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     Bug with show marks
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
zhouzh2
Posted on: 8/29/2010 4:44 am
Just can't stay away
Joined: 7/27/2008
From:
Posts: 90
Re: Bug with show marks
Hi owilsky,
you can use a macro to toggle marks. There is a simple marco somewhere in the forum, I couldn't find it though, I just post it here again.
#title = "Marks"
#tooltip = "Toggle Marks ON/OFF"

// Displays or Hides Marks.

myobject = document.Config;

if (myobject.Mark.ShowReturns==0 && myobject.Mark.ShowEOF==0 && myobject.Mark.ShowTabs==0 && myobject.Mark.ShowSpaces==0 && myobject.Mark.ShowDBSpaces==0 && myobject.Mark.CrLfDifferent==0 && myobject.Mark.ShowIndentGuides==0 && myobject.Mark.ShowControlCharacters==0) {
myobject.Mark.ShowReturns="true"; // Returns
myobject.Mark.ShowEOF="true"; // End of File
myobject.Mark.ShowTabs="true"; // Tabs
myobject.Mark.ShowSpaces="true"; // Spaces
myobject.Mark.ShowDBSpaces="true"; // Wide Spaces
myobject.Mark.CrLfDifferent="true"; // CR and LF with Different Marks
myobject.Mark.ShowIndentGuides="true"; // Indent Guides
myobject.Mark.ShowControlCharacters="true"; // Control Characters
}
else {
myobject.Mark.ShowReturns="false"; // Returns
myobject.Mark.ShowEOF="false"; // End of File
myobject.Mark.ShowTabs="false"; // Tabs
myobject.Mark.ShowSpaces="false"; // Spaces
myobject.Mark.ShowDBSpaces="false"; // Wide Spaces
myobject.Mark.CrLfDifferent="false"; // CR and LF with Different Marks
myobject.Mark.ShowIndentGuides="false"; // Indent Guides
myobject.Mark.ShowControlCharacters="false"; // Control Characters
}

myobject.Save();

You can comment the marks you don't want to make the macro suitable to your needs.
Flat Previous Topic | Next Topic


Subject Poster Date
   Bug with show marks owilsky 8/26/2010 11:04 pm
     Re: Bug with show marks Yutaka 8/26/2010 11:09 pm
       Re: Bug with show marks owilsky 8/26/2010 11:23 pm
       » Re: Bug with show marks zhouzh2 8/29/2010 4:44 am
           Re: Bug with show marks owilsky 8/30/2010 12:28 am
             Re: Bug with show marks Yutaka 8/30/2010 12:40 pm
               Re: Bug with show marks owilsky 8/30/2010 11:03 pm

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