Plain text inherited from ctext.org contain the following syntax: {{...}}
堯年十六,以唐侯升為天子,遂以為號。{{《論語·泰伯》疏
案曰:堯典正義云:徧檢書傳無帝堯卽位之年,則此似非伏生大傳文,疑出書緯。}}
辯章百姓。{{見《毛詩·采菽》正義、《史記·五帝紀》索隱、《後漢書》注}}
辨章百姓,百姓昭明。{{《癸辛雜識》前集引《尚書大傳》第一曰云云}}
Commentary within the braces are displayed as such:
How can this be reproduced in org-mode
? My guess is that I would need to work on faces and syntax tables.
Using @xuechunyang's answers below, I'd like to define another set of commentary markup on my own by changing some of the variables. Why doesn't this work?
(defface org-commentary-2
'((t :foreground "blue2"))
"Face for blue text in org mode")
(defun org-add-my-extra-markup ()
(add-to-list 'org-font-lock-extra-keywords
`(,(rx (group "((")
(group (+? anything))
(group "))"))
(1 '(face default invisible t))
(2 '(face org-commentary-2))
(3 '(face default invisible t)))))
(add-hook 'org-font-lock-set-keywords-hook #'org-add-my-extra-markup)
}}
is missing in the first comment.