#9319
ToadLoadin
Member

Hi Yutaka,

I rewrote my function to this:

function toggleLineNum() {
var cfg = document.Config;
var isLineNumOn = document.Config.General.ShowLineNumbers;
document.Config.General.ShowLineNumbers = !isLineNumOn;
cfg.Save();
}

but it still does not work… :-(

Yutaka wrote:
Hi ToadLoadin,

This is a frequently asked question. Please use Save() when you finished settings:


cfg = document.Config;
/// do something
cfg.Save();

Of course, you can use the EmEditor command “Line Number”, and there is a toolbar button for this command.