|
名称 | URL |
---|---|
epojava |
epojava epojava のダウンロード ※ epojava.zip には epojava と epoxml のフルセットが入っています。 |
Xi |
http://www.baykit.org/xi/ Baykit Extend it! |
……ぶっちゃけた話、PSGMLや通常のxml-mode、 果ては yahtml でも epo-xi.el を組み合わせて使えるのですが、 それは割愛しますね ;-)。
$
または、
/
を入力後、スペースまたはタブを押すと、
変数名($
のとき)か、
タグ名(/
のとき)で補完が効きます。
<?xml version="1.0" encoding="Windows-31J"?>
<xi:program version="1.1" xmlns:xi="http://www.baykit.org/Xi/1.1">
<xi:variable name="hoge">
<data><code>ほげほげ1</code></data>
<data><code>ほげほげ2</code></data>
<data><code>ほげほげ3</code></data>
<data><code>ほげほげ4</code></data>
<data><code>ほげほげ5</code></data>
</xi:variable>
■
</xi:program>
とあるとき、■の位置で、
xi:variable
等の
select
アトリビュートのあるタグを
[prefix] c s
または[prefix] c b
で補完すると、select
アトリビュートの補完時には、
[spc]h[spc]/d[spc]/c[spc]
と入力するだけで、
$hoge/data/code
が補完され、
[spc]i[spc][spc]l[spc]X[spc]F[spc]e[spc]
と入力するだけで、
$IO.loadXmlFromStream()
が補完されます。
[prefix] !
を入力すると、
<!-- -->
が補完されます。
ul
,
table
などといったタグの上で
M-[ret]
を入力すると、
適切な下位のタグが補完されます。M-[ret]
を挿入すると、
<ul>■
</ul>
以下のようなタグが補完されます。
<ul>
<li></li>
</ul>
xi では、以下のタグが補完されるようになっています。
ol
→li
を補完。
ul
→li
を補完。
dl
→dt
とdd
を補完。
table
→tr
とtd
を補完。
xi:program
→xi:variable
を補完。
xi:try
→xi:exception
を補完。
xi:choose
→xi:when
を補完。
xi:element
→xi:attribute
を補完。
sql:data-source
→
type,driver,url,user,password
を補完。
mail:data-source
→
type,smtp-host,lookup
を補完。
[prefix] g
を入力すると、
対象ファイルへジャンプします。
~/.emacs
上に以下のようなコードを記述すると、
xi
にパスを通さなくても実行できます。
(setq epo-xi-command-line
"c:/home/src/xi/bxi_1.1.1/bin/xi.exe")
UNIX機なら以下のような感じになるでしょう。
(setq epo-xi-command-line "/home/ando/xi/bin/xi")
~/.emacs
に以下のような記述を行ってください。
[prefix] t p
でサーバが起動され、
[prefix t l
でサーバをシャットダウンすることが
容易に行えます。
;;; bayserver の場合
(setq epo-xi-command-line "c:/home/src/xi/bxi_1.1.1/bin/xi.exe")
(setq epo-xi-bayserver-start "bin\\bserv.exe -debug")
(setq epo-xi-bayserver-stop "bin\\bserv.exe -stop")
(setq epo-xi-process-alist
'((?r (type . compile)
(command "ant" epo-ant-process "-emacs" "-f"
epo-ant-other-makefile epo-ant-other-target))
(?j (type . compile) (prompt . t)
(command "xi" epo-xi-command-line basename))
(?p (type . compile)
(command "server start" epo-xi-bayserver-start)
(execdir . "C:\\home\\ando\\work\\xi\\bserv_1.1.1"))
(?l (type . compile)
(command "server stop" epo-xi-bayserver-stop)
(execdir . "C:\\home\\ando\\work\\xi\\bserv_1.1.1")) ))
;;; Jakarta-Tomcat の場合
(setq epo-xi-command-line "c:/home/src/xi/bxi_1.1.1/bin/xi.exe")
(setq epo-xi-bayserver-start "startup.bat -debug")
(setq epo-xi-bayserver-stop "shutdown.bat")
(setq epo-xi-process-alist
'((?r (type . compile)
(command "ant" epo-ant-process "-emacs" "-f"
epo-ant-other-makefile epo-ant-other-target))
(?j (type . compile) (prompt . t)
(command "xi" epo-xi-command-line basename))
(?p (type . compile)
(command "server start" epo-xi-bayserver-start)
(execdir . "C:\\java2\\tomcat\\bin"))
(?l (type . compile)
(command "server stop" epo-xi-bayserver-stop)
(execdir . "C:\\java2\\tomcat\\bin")) ))
尚、最新のepo
はrsyncというソフトを使用して取得します。
rsync -avzH --delete rsync://yatex.org/pub/epo .