August 29, 2010 at 12:44 pm #8893
zhouzh2
Participant
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.