Article directory
0.Write in front
If you are preparing to write a blog but don’t know how to start, or you are already writing a blog but don’t know the meaning of the nouns in my title, I highly recommend you to read this article, because they are all useful tools for blogging and can greatly improve your blogging skills. It can help you improve the efficiency of your writing with Typora. That is why "if you want to do your job well, you must first sharpen your tools". Sharpen your knife and chop wood without losing sight of it. So without further ado, let's get started!
Through this article you will learn:
- Build a picture bed and put the pictures on the network server instead of locally. From now on, the pictures will not be displayed due to local pictures being moved or accidentally deleted.
- Modify font color and beautify blog page with one click
1. Alibaba Cloud Storage builds a picture bed
Software prerequisite: typora, picgo, Alibaba Cloud account installed
Recommended related video materials:
1. Operation on Alibaba Cloud official website
Step 1: Open [ Alibaba Cloud official website , search: OSS
Step 2: Click to buy and complete the purchase
Step 3: Click on the management console and create the Bucket. Note that the read and write permissions here must be selected: public read
The Bucket name you created here (mine is songyonghong) is recommended to be temporarily saved in your own notepad, which will be used later when configuring picgo.
Step 4: Create a directory
It is recommended to temporarily save the path you created here (my here is Blog/) to your own notepad, which will be used later when configuring picgo.
Step 5: Select AccessKey management and create AccessKey
It is recommended to temporarily save the t ( AccessKey ID and AccessKey Secret ) in Secret here to your own notepad, which will be used later when configuring picgo.
2. Operations in PicGo
3. Operations in Typora
Finally, if successful, click: The screenshot of the successful page to verify the image upload option is as follows:
2. AutoHotkey changes font color
Basic software prerequisite: Typora installed
Related article information:
[1.Getting started with the AutoHotKey script](https://www.bilibili.com/video/BV1tK411T7kY/?spm_id_from=333.337.search-card.all.click&vd_source=1996bef0ab189ba0145ffc80af08a55c autohotkey)
2. How to install AutoHot and use it to modify typora font color
Step 0: Double-click to open the AutoHotKey software. Note: This software is the same as PicGo. There is no pop-up reminder when opening.
Step 1: Create a new text document on the desktop: text document.txt
Step 2: Copy the following script language in the document
explain:
alt+1 key: change the font color to blue
alt+2 key: change the font color to orange
…(You can add or customize the button-color yourself)
#IfWinActive ahk_exe Typora.exe
{
!1::addFontColor("blue")
!2::addFontColor("orange")
!3::addFontColor("red")
!/::addFontColor("green")
}
addFontColor(color){
clipboard := ""
Send {
ctrl down}c{
ctrl up}
; SendInput {
Text}
SendInput {
TEXT}<font color='%color%'>
SendInput {
ctrl down}v{
ctrl up}
If(clipboard = ""){
SendInput {
TEXT}</font>
}else{
SendInput {
TEXT}</
}
}
Step 3: Change the file extension to .ahk
Step 4: Double-click to open this file
You're done here. You can try it by selecting the typora text and using the shortcut keys.
ps: You can explore other fun ways to play AutoHotKey, such as entering a few specific characters (which can be understood as shortcut keys) to enter a large section of prepared text.
You can also add this modify font color .ahk && picgo.exe && AutoHotKey.exe file to the auto-start folder to avoid having to manually double-click and double-click to open it every time.