Master Your Documents: Advanced SmartTabs and Customizable Spaces in EmEditor's Text Editor

Master Your Documents: Advanced SmartTabs and Customizable Spaces in EmEditor's Text Editor

William Lv8

Master Your Documents: Advanced SmartTabs and Customizable Spaces in EmEditor’s Text Editor

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author
    Posts
  • December 14, 2015 at 7:26 am #20532
    Patrick C
    Participant
    Written on 2015-12-14 16:33
    Having recently migrated from PSPad (for various reasons) my only and dearly
    missed functionality are “smart tabs” or “smart spaces”, i.e.:
    “TAB press will cause the cursor to follow words from previous line(s).”
    (as in PSPad’s description)
    ***Example 1***
    ↑ indicates the cursor location
line1 does xyz1;    // comment 1  
line2 does xyz2;    // comment 2  
line three; // comment 3  
            ↑  

executing “smart_tab_forward.jsee”

line1 does xyz1;    // comment 1  
line2 does xyz2;    // comment 2  
line three;         // comment 3  

***Example 2***
↑ indicates the cursor location

line1 does xyz1;    // comment 1  
line2 does xyz2;    // comment 2  
line three;            // comment 3  
                       ↑  

executing “smart_tab_backward.jsee”

line1 does xyz1;    // comment 1  
line2 does xyz2;    // comment 2  
line three;         // comment 3  

Basically the tab is adapted according to the first previous line which delivers
a suitable tab anchor point (default is to consider the preceeding 20 lines).
It also works with multi-line selections.
Perhaps this is of use for someone.
Best wishes,
Patrick
PS Required files:
● smart_tab_forward.jsee
● smart_tab_backward.jsee
● calc_smart_tab_forward.jsee // contains a subfunction for smart_tab_forward.jsee
● calc_smart_tab_backward.jsee // contains a subfunction for smart_tab_backward.jsee
I tried to upload the files to the library but they didn’t show up yet.
You can also get them from Google Drive:
https://drive.google.com/file/d/0B%5FK1c4Vc4qX2UXhjVkdUaGFpY3M/view?usp=sharing
December 14, 2015 at 7:44 am #20534
Patrick C
Participant
PPS Thanks to Yutaka for the support!
December 15, 2015 at 12:33 am #20539
Patrick C
Participant
Uploaded a new version (improved the backward tab behaviour).
The newest version will be posted under the same Google Drive link as above.
PS
I’ll no longer update the library, except if I can find out how to delete outdated code.

  • Author
    Posts

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.

Also read:

https://techidaily.com
  • Title: Master Your Documents: Advanced SmartTabs and Customizable Spaces in EmEditor's Text Editor
  • Author: William
  • Created at : 2024-10-08 13:06:30
  • Updated at : 2024-10-14 09:36:14
  • Link: https://win-premium.techidaily.com/master-your-documents-advanced-smarttabs-and-customizable-spaces-in-emeditors-text-editor/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Master Your Documents: Advanced SmartTabs and Customizable Spaces in EmEditor's Text Editor