EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     How to set configuration properties in a macro
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
dw7832
Posted on: 9/14/2009 7:48 am
Not too shy to talk
Joined: 6/28/2009
From:
Posts: 27
How to set configuration properties in a macro
I'm currently struggling to set the properties of the active configuration of a file in a macro:

// toggle show spaces
if (document.Config.Mark.ShowSpaces) {
document.Config.Mark.ShowSpaces = false;
} else {
document.Config.Mark.ShowSpaces = true;
}

and

with (document.Config.Indent) {
TabColumns = 4;
InsertSpaces = true;
WrapIndent = true; }
document.Config.Save();

Neither of these give an error message but when alert()-ing the properties they are not changed nor does EmEditor act like they've changed. Can anybody shed any light?

Thank you in advance.
Flat Previous Topic | Next Topic


Subject Poster Date
 » How to set configuration properties in a macro dw7832 9/14/2009 7:48 am
     Re: How to set configuration properties in a macro Yutaka 9/14/2009 3:49 pm
       Re: How to set configuration properties in a macro Dino 9/18/2009 10:23 pm
         Re: How to set configuration properties in a macro Yutaka 9/19/2009 8:04 am
           Re: How to set configuration properties in a macro derekcohen 5/24/2010 10:05 pm
             Re: How to set configuration properties in a macro Yutaka 5/24/2010 10:25 pm
               Re: How to set configuration properties in a macro derekcohen 8/16/2010 11:53 pm
                 Re: How to set configuration properties in a macro Yutaka 8/19/2010 10:09 am
                   Re: How to set configuration properties in a macro derekcohen 8/22/2010 1:30 am
                     Re: How to set configuration properties in a macro Yutaka 8/22/2010 9:04 am

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