简体   繁体   中英

HTML/CSS Code editor text formatting hotkeys

Sorry for a topic that probably doesn't belong here, I tried Googling though and couldn't find a straight answer:

I'm looking for an simple HTML/CSS editor where I can easily and quickly set up kind of "WYSIWYG" hotkeys for text editing, like italic (ctrl+i), bold (ctrl+b), underscored text (ctrl+u), and also linebreaks and paragraph (ctrl+p) wrapping.

Any suggestions?

There are no editors I know that does that, but you can use AutoHotKey Scripts to do it.
First, download AutoHotKey .
Then, create a.ahk file by right clicking on the desktop > new > autohotkey script.
Right click the file and press Edit . Copy the following code to the notepad window:

^Numpad1::
Send, <i></i>
return

^Numpad2::
Send, <b></b>
return

^Numpad3::
Send, <u></u>
return

^Numpad4::
Send, <br>
return

^Numpad5::
Send, <p></p>
return

Exit out of notepad and double click the ahk file. Now you can use ctrl+numberpad1 to create tags, ctrl+numberpad2 to create tags, and so on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM