Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation / Tab Settings for the Script Editor #75

Closed
ajtruckle opened this issue May 17, 2024 · 3 comments
Closed

Indentation / Tab Settings for the Script Editor #75

ajtruckle opened this issue May 17, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ajtruckle
Copy link
Owner

Is your feature request related to a problem? Please describe.
It is not possible to change the size of the tabs / indentations within the editor.

Describe the solution you'd like
The SciTE text editor, utilizing the same Scintilla Control, includes the following feature in the Options menu:

image

Can we add a similar feature to the Script Editor?

@ajtruckle ajtruckle added the enhancement New feature or request label May 17, 2024
@cengizu
Copy link

cengizu commented May 29, 2024

It will be a nice addition. If you can, do it! 😎

@ajtruckle
Copy link
Owner Author

ajtruckle commented Jan 14, 2025

@cengizu

I have recently conducted some research to understand the requirements for implementing this in the script editor.

Configuring the tab and indent properties is a straightforward process:

  • Tabs
    • m_edit.SetTabWidth(8);
    • const auto tabWidth = m_edit.GetTabWidth();
  • Indent s
    • m_edit.SetIndent(8);
    • const auto indentWidth = m_edit.GetIndent();
  • Use Tabs Stops
    • m_edit.SetUseTabs(true);
    • const auto useTabStops = m_edit.GetUseTabs();

Writing the code for the Convert button is challenging. Fortunately, the source code for SciTE is freely available, and I can see how it performs the conversion. However, I need to adapt that code to be compatible with Meeting Schedule Assistant.

I will implement this feature once I have identified a viable solution.

@ajtruckle ajtruckle self-assigned this Jan 16, 2025
@ajtruckle ajtruckle added this to the 25.3.0 milestone Jan 16, 2025
@ajtruckle
Copy link
Owner Author

@cengizu
I am sending you a beta version to evaluate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants