2011-12-10 40 views
3

ハイライトの目的で、アスタリスクで強調表示されている行をどのように一致させるのですか? Markdownをハイライト表示(https://github.com/plasticboy/vim-markdown/blob/master/syntax/mkd.vim)plasticboyで下線付きの行を一致させる方法****

1. Really big title 
******************* 

答えて

2

はこのようにそれをしない:

"HTML headings 
syn region htmlH1  start="^\s*#"     end="\($\|#\+\)" contain[email protected] 
syn region htmlH2  start="^\s*##"     end="\($\|#\+\)" [email protected] 
syn region htmlH3  start="^\s*###"     end="\($\|#\+\)" [email protected] 
syn region htmlH4  start="^\s*####"    end="\($\|#\+\)" [email protected] 
syn region htmlH5  start="^\s*#####"    end="\($\|#\+\)" [email protected] 
syn region htmlH6  start="^\s*######"    end="\($\|#\+\)" [email protected] 
syn match htmlH1  /^.\+\n=\+$/ [email protected] "<-- Here is the one I think you want 
syn match htmlH2  /^.\+\n-\+$/ [email protected] 

完全性についてマークダウンヘッダーは次のとおりです。

H1 header 
========= 

H2 header 
--------- 
関連する問題