1
JASONews 2016-03-09 07:58:51 +08:00
试试直接嵌入 html <strong> highlighted code </strong>看看行不行
|
2
loshine1992 2016-03-09 09:47:45 +08:00
如果是 code block 中嵌入代码,那么不需要这么弄
你这个应该使用引用加加粗 ```markdown > This line won't be highlighted > **This line will be highlighted** > **This line will be highlighted** > This line won't be highlighted ``` |
3
ExploreWay 2016-03-09 10:29:39 +08:00 via iPhone
这个星期搭建一个,玩玩
|
4
dynaguy OP @JASONews @loshine1992 试了,不行!
|
6
pdef 2016-03-09 14:36:40 +08:00
高亮是语法支持的范畴。
以 Python 为例: ```python print('Highlight!') ``` |
7
dynaguy OP @pdef 你的示例确实将"Hightlight!"高亮了。但如你所说局限在语法支持的范畴。不是我希望的结果。
我的一个实例,记录一个终端命令的执行的输出,将键盘输入命令部分高亮: #openssl s_client -connect smtp.myserver.com:993 -quiet depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X1 verify error:num=20:unable to get local issuer certificate verify return:0 * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5] Dovecot ready. a1 LOGIN [email protected] my_password a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in a2 LIST "" "*" * LIST (\HasNoChildren) "." INBOX a2 OK List completed. a3 EXAMINE INBOX * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS ()] Read-only mailbox. * 4 EXISTS * 4 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 1457462303] UIDs valid * OK [UIDNEXT 5] Predicted next UID a3 OK [READ-ONLY] Examine completed (2.716 secs). a4 LOGOUT * BYE Logging out a4 OK Logout completed. 这个例子里,我希望只将我输入命令高亮, 比如 #openssl s_client -connect smtp.myserver.com:993 -quiet ... a1 LOGIN [email protected] my_password ... a2 LIST "" "*" ... ... @pdef |