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

Setting the Tab Size #5

Open
CaptainPackers opened this issue Dec 2, 2021 · 4 comments
Open

Setting the Tab Size #5

CaptainPackers opened this issue Dec 2, 2021 · 4 comments

Comments

@CaptainPackers
Copy link

I don't understand how to reset the tab size. There are three JS files. Could you specify exactly which file needs to be modified and how? I tried changing

tabOverride.set(textareas).tabSize(0).autoIndent(true).escape(true);
to
tabOverride.set(textareas).tabSize(2).autoIndent(true).escape(true);

in script.js but it had no affect. I also tried changing the line to

tabOverride.set(textareas).2.autoIndent(true).escape(true);

which also had no affect.

I really like the concept of your plugin, but I need to modify the tab to two spaces to be able to use it.

Thanks

@MarcosBL
Copy link
Owner

MarcosBL commented Dec 3, 2021

I no longer use Dokuwiki anymore, but the file/line to be edited should be https://github.com/MarcosBL/dokuwiki-plugin-autotabber/blob/master/script.js#L12

so tabOverride.set(textareas).tabSize(2).autoIndent(true).escape(true); should do it, are you sure you are hard-reloading the page after the change ? no cache, etc ?

@CaptainPackers
Copy link
Author

CaptainPackers commented Dec 9, 2021 via email

@MarcosBL
Copy link
Owner

MarcosBL commented Dec 9, 2021

No, that's not a problem, the plugin is very small, and easily maintenable; I'll happily accept and merge any PR, and even take a look at it myself, is just as I no longer have an updated installation, it could take a bit of time

@CaptainPackers
Copy link
Author

CaptainPackers commented Dec 9, 2021 via email

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

No branches or pull requests

2 participants