-
Notifications
You must be signed in to change notification settings - Fork 14
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
Command to preformat text? #123
Comments
Try something like:
I wrote the command based on the Change Case button. Change Case for Thunderbird Unicode code converter (use to decode custombutton:// url) |
Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. You can use the cmd shorthand and func shorthand with tbkeys and tbkeys-lite. Use the cmd shorthand for calling a command using the goDoCommand method. For example, "cmd:cmd_nextMsg" is the same as "window.goDoCommand('cmd_nextMsg');". Use the func shorthand for calling a function on the window object without a parameter. For example, "func:MsgNewMessage" is the same as "window.MsgNewMessage();". There is a tbkeys.xpi link on the releases page. Install Tips |
Yeah tb-lite, I'd rather stick with that. |
I've been using this add-on for a while for one single thing, that being it's ability to format the selected text as "code" so it shows up in monospace when composing HTML e-mail. I can't remember how I even figured it out, it was quite involved, and I think I had to enter a script in the developer console? In the end I had a stroke of luck and found out it was simply
cmd_code
, so putting this in the compose key bindings did the trick:Now I just select some text and push ctrl+d, so convenient considering the alternative is selecting text then going to Format -> Text Style -> Code each time.
However, now I've found that
<pre>
works a lot better and was hoping I could update my shortcut. Unfortunately,cmd_pre
norcmd_preformat
work. So wondering if you know the command or how I'm supposed to find it again? ThanksThe text was updated successfully, but these errors were encountered: