はてダラとmarkdownを使用するEmEditor用シンタックスファイル


以前howmを使用して管理しようと考えていた、このhatena用文章は現在textファイルのベタ書きで書いています。まだそんなに日にちが経っていないので、検索等の必要がないからです。現在は対象のファイルを作成し、Windowsで普段使用しているEmEditorで書いています*1
今日はmarkdown方式で作成したhatena(はてダラ)用文章を、EmEditorでハイライトさせるシンタックスファイルを公開したいと思います。


対応している書式は以下のみです。自分が使用する分のみ設定しています。

以下のコードを保存し、EmEditorでインポートしてください。

; EmEditor Syntax File
;
; To import this file to an existing configuration, select Configuration
; under the Tool menu, select Define Configurations, select a configuration
; you want to import to, press [Properties], select the Highlight page, and
; press [Import].
;
; Submit your customized file to submit@emurasoft.com
; to be listed in www.emurasoft.com user files pages.
;
#Highlight=on
#BeginTag=
#EndTag=
#CommentBegin=
#CommentEnd=
#LineComment1=
#LineComment2=
#SingleQuote=off
#DoubleQuote=off
#ContinueQuote=off
#Escape=
#ScriptBegin=
#ScriptEnd=
#SpecialSyntax=off
#HighlightBraces=on

#Keyword color=2,word=off,rightall=off,case=off,insidetag=off,regexp=on
\(\(.*?\)\)

#Keyword color=5,word=off,rightall=off,case=off,insidetag=off,regexp=on
\*\
[1-9]\.\

#Keyword color=1,word=off,rightall=off,case=off,insidetag=off,regexp=on
\*\*.*?\*\*

#Keyword color=7,word=off,rightall=off,case=off,insidetag=off,regexp=on
^^\ \ \ \ .*$

#Keyword color=3,word=off,rightall=off,case=off,insidetag=off,regexp=on
\[.*?\]\[.*?\]
^^====$

#Keyword color=6,word=off,rightall=on,case=off,insidetag=off,regexp=on
^^^#^#^#

#Keyword color=4,word=off,rightall=off,case=off,insidetag=off,regexp=on
^^\*t\*.*$
^^\*[0-9].*\*.*$

なお、自分はhw.plを改造し、txt -> htnへ拡張子を変更し、EmEditorへ関連付けしています。

改良点等ありましたら連絡ください。とくに以下の昨日をつけたいのでいいアイデアがあれば連絡ください。

  • hatenaキーワードにある文字の強調
  • ReferenceスタイルのLink先を自動記入

*1:EmEditorテクニカル ライセンスをいただいています。