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 |
|---|---|---|
| » |
dw7832 | 9/14/2009 7:48 am |
| |
Yutaka | 9/14/2009 3:49 pm |
| |
Dino | 9/18/2009 10:23 pm |
| |
Yutaka | 9/19/2009 8:04 am |
| |
derekcohen | 5/24/2010 10:05 pm |
| |
Yutaka | 5/24/2010 10:25 pm |
| |
derekcohen | 8/16/2010 11:53 pm |
| |
Yutaka | 8/19/2010 10:09 am |
| |
derekcohen | 8/22/2010 1:30 am |
| |
Yutaka | 8/22/2010 9:04 am |
| Register To Post | |


