Close blockquote by hitting enter twice - tinymce

Is there a way for blockquotes to close when hitting enter twice (just like lists do)?
I've seen these done in some places, but cant figure out why.
Thanks!

This will close the blockquotewhen you hit enter on an empty line. It will close other blocks too as fare as I know if line is empty when you hit return.
tinymce.init({
selector: "textarea",
end_container_on_empty_block: true,

Related

Visual studio 2022, Press '(' on selected text not working (as expected)

I don't know how to describe this behaivor:
Press ( key on selected text in vs2022, what i want is to replace the whole selection with (, but it does not, even worse, what it does is to add another ) to the end of the selection, this is really annoying and happened many times. i tried to find options in Tools/Options, twice, and nothing found to disable it.
(actualy, it happens to all marching symbols like "(<{, so i guess it's something to do with the brace marching thing.)
Please help, thank you.

autohotkey: go to a specific place in a line

I have a long mermaid code line like
A("hello world, this is a really long sentence that needs editing"):::test %% here are some commments about the line
I'm editing this in obsidian and I want to go to the end of the ) to change the :::test to something else.
What I'm trying to accomplish is to press use AHK to press a key that will take my cursor to after the ). Right now, I can press end and go back wards, or ctrl arrow, both options suck when the code line is really long and the ) is right in the middle.
can AHK do something like this?
this works in obsidian, probably works in most apps
!\::
Send {home}
Send ^f
Send )
Send {esc}{esc}
return

How can I make AutoHotKey script execute its function with multiple hotkeys?

LButton::
^LButton::
While GetKeyState("LButton","p"){
Send {LButton}
Sleep 20
}
return
This is my current script. What it does is when I hold the left mouse button it simulates pressing it repeatedly every 20 milliseconds. But, because in the game I use it with I often have to hold Alt down to crouch I need it to work with ^LButton. But for some reason, when holding alt+LButton it just acts normally i.e. it reverts to me holding down the left mouse button.
One thing I thought of is possibly adding
While GetKeyState("LButton","p") or GetKeyState("alt LButton","p"){
However I am lacking proper syntax to pass a modifier along with a button to the GetKeyState function.
I searched through the documents and did a bit of googling but it seems like the AHK forums have been inactive for around 5 years now. If anyone knows how to solve this issue your help would be appreciated!
#CherryDT Thanks for the quick response. I actually think I was just googling the wrong because I have solved it.
The trick is that with mouse buttons, you have to use a different syntax and also there is a precedence to the order in which the combination is pressed.
LButton::
Alt + LButton::
etc...
Again, thanks for the response :)

Prevent Ctrl+Z deleting last line in SSMS after Script As->Alter View

I'm hoping there's just some way to disable this in SQL Server Management Studio (v17.9.1). When I Script As->Alter a view or stored procedure to a new query window, I can hit Ctrl+Z and it deletes the last line of text! I realize as I'm trying to explain this exactly what's happening: Sql is opening a new window and "pasting" the query line by line. Therefore when you undo you're removing the last line and so on.
This becomes a problem when you say, alter a view, make changes and execute, then decide to undo them all so you just hold Ctrl+Z then realize you've erased half your script instead of just going back to the starting point.
Does anyone know how to disable this or an elegant way of preventing it from happening?
This started out as a comment, but it's getting too long, so...
I don't think you can disable ctrl+z, but just like Newton's third law of motion - for every undo there's an equal and opposite redo - so if you've held ctrl+z pressed for too long, you can always restore the lines that ctrl+z deleted simply by using ctrl+y.
Other options are suggested by GSerg in his comments - you can always keep a copy of the original code in a different query window, or even a simple text editor.
One more option is to first save the content of the new query to a file, so you can always reload it's original state if you've messed things up too much.

What is Macro "Don't Save" command?

I can use the following command to stop a PDF or any file from opening:
OpenAfterExport:=False
Does anyone know the command to suppress the 'Don't Save' prompt?
Thanks a lot
For excel, there are several ways to 'hide' or 'suppress' the save prompt.
ThisWorkBook.Saved = True
and
Application.DisplayAlerts = False
will both disable the save prompt from appearing. However, the latter has problems of its own, for example, if you have other issues, I believe those message will also be disabled which could be problematic. After both of these you could add a
ActiveWorkBook.Close
to close the workbook.
You can do all this in one line with
ActiveWorkbook.Close savechanges:=False
If you need to save the workbook, make sure you add a piece of code to autosave before that line of code.
Hope that helps. If that's not what you're looking for, please elaborate and I'll try again.