EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     document.Config.File.Delimiter
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 12/4/2012 7:46 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2423
Re: document.Config.File.Delimiter
Hi LTT,

I am fixing the "xml" vs. "XML" issue. Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

LTT
Posted on: 12/3/2012 11:47 pm
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
Re: document.Config.File.Delimiter
So the Load method can be used to get or set the properties of a non-current configuration. That's what I wanted. Thanks.

Actually, document.Config.Save("X") duplicates the current configuration. So I used it to add a configuration.


Minor things:
I think "Delimiter" should be included in Highlight (1). (JSEE/VBEE, reset.)

If I use document.ConfigName = "xml", and the existing configuration name is "XML", I think the status bar should display "XML", rather than "xml".
Yutaka
Posted on: 11/28/2012 10:28 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2423
Re: document.Config.File.Delimiter
Hello,

When you do something like below, you can change the configuration properties for C++:

cfg = document.Config;
cfg.Load( "C++" );
cfg.File.Delimiter = "|";
cfg.Save();


You can't add or delete a configuration by macros.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

LTT
Posted on: 11/28/2012 4:04 am
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
Re: document.Config.File.Delimiter
Thank you.
I have some more questions and hope you will give a reply.

1.
I want to load the settings of the existing "X" configuration into the current one.

oCfg = document.Config;
oCfg.Load("X");
oCfg.Save();

But nothing happened.
How to use the Load method?

2.
I can add a configuration by using document.Config.Save("X").
But is there a macro way to delete a configuration?
Yutaka
Posted on: 11/26/2012 9:50 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2423
Re: document.Config.File.Delimiter
Hello,

1. You will need to load the Config object into the memory before you can modify and save it. Please rewrite like this:

cfg = document.Config;
cfg.File.Delimiter = cDSV;
cfg.Save();


2. I will add Delimiter to the help index.

Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

LTT
Posted on: 11/26/2012 7:06 am
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
document.Config.File.Delimiter
1.
cDSV = document.Config.File.Delimiter;
can get the current Delimiter.
But
document.Config.File.Delimiter = cDSV;
document.Config.Save();
can not set it.

2.
Can not get the content by using [Find Macro Keyword] command on "Delimiter".
Threaded | Oldest First Previous Topic | Next Topic | Top


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