Guide on Configuring Settings Within Macros Using EmEditor Text Editor
Guide on Configuring Settings Within Macros Using EmEditor Text Editor
September 14, 2009 at 11:49 pm #7639
Keymaster
dw7832 wrote:
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.
Please try this way:
cfg = document.Config;
if (cfg.Mark.ShowSpaces) {
cfg.Mark.ShowSpaces = false;
} else {
cfg.Mark.ShowSpaces = true;
cfg.Save();
Also read:
- ¡No Pierdas Tus Datos! Cómo Recuperar Archivos Desaparecidos De Una Unidad Flash USB Con Estos 5 Pasos Sencillos
- [New] Tutorial Purging Your YouTube Download History for 2024
- [New] Vacation Adventures Reimagined This Year's Top Classics for 2024
- [Updated] Walking Into Tomorrow The Premier VR Treadmills Reviewed for 2024
- 2024 Approved Grid Gurus Find the Ultimate Photo Organizing Apps
- 如何使用AOMEI Backupper創建伺服器映像版本 - 教學課程
- Best Recommended Free Video Player Apps for Windows 10/11 with Universal File Compatibility
- Erfolgreiches Backup Für Das iPhone: Die Verwendung Von iTunes Erklärt
- Guide to Acquiring Permissions From TrustedInstaller for Safe File Editing
- Optimal Performance and Cost: To SSD or HDD for Your Windows Operating System?
- Precision in Capturing An Expert OBS Skype Guide
- Titre SEO : Faites Fonctionner Votre Chiffrement De Manière Efficace Sans Attendre Avec BitLocker - Trouvez Des Alternatives Rapides Ici !
- Windows 11 BitLockerアンチエンクリプション手順:8コツ
- Title: Guide on Configuring Settings Within Macros Using EmEditor Text Editor
- Author: Andrew
- Created at : 2024-11-11 00:04:41
- Updated at : 2024-11-12 18:03:17
- Link: https://win-latest.techidaily.com/guide-on-configuring-settings-within-macros-using-emeditor-text-editor/
- License: This work is licensed under CC BY-NC-SA 4.0.