Medium 編輯器的一些小技巧 📝

code block, inline code, emoji

Ron Yeh
Ron Yeh
Jul 28, 2017 · 2 min read

Medium 算是目前我最喜歡的部落格網站了 👍。舒服容易閱讀的排版,編輯器也是非常的直覺、插入圖片影片的按鈕是每行出現,不是盯在上方的 toolbar。但為了好閱讀、畫面簡單,也因此犧牲了很多使用者可以客製化的地方,不像以前無名小站可以改成花花綠綠的字體 👽。

不過相信很多人在寫文章時,還是會希望能加註重點。特別是在編輯程式的筆記時,想要嵌入程式碼。花了一些時間才找到比較詳盡的 Medium 介紹,也大多是英文,所以以下簡單的整理一下編輯時的小功能。

Code Block

在新的一行輸入 ``` ,就會自動出現淺灰的方格,可以更容易地呈現程式碼。但目前Medium 還沒有支援到可以呈現程式的 syntax highlight,如果有需要的話,可以使用 Gist

print("code block")

Inline code

除了可以把字體加粗、改成斜體,調整大小外。也可以使用 這個 來更清楚地呈現。

輸入前先打 ` 然後接著輸入任何一個字母,輸入完成後再打 ` 來結束。

` + any other character

另外一個方法是把想要加強的字先反白,再按下 ` 即可。

Emoji 😊 😜

如果你覺得每次要選表情符號都要 ^⌘[space] 很麻煩的話,可以試試這個。

:emoji: (只能以英文的方式輸入)

舉例來說:

: 100 : 就會出現 💯 ,很方便吧。在輸入 : 後就會出現相關字的 emoji 可以選擇。這裡 是更多的 emoji 代號可以參考看看。 😚

Ron Yeh

Written by

Ron Yeh

Eager to make the world less boring.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade