#17876
Andreas
Participant

The following version of the macro does work:

#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=”false”; // 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();

Note that I changed the handling of the Indent Guides, because I never want to see them.