runstylizer

来自「j2ee API 开发重要工具 免费下载 欢迎使用」· 代码 · 共 35 行

TXT
35
字号
#!/bin/csh## Use the fast start (-f) option on the run command so that it doesn't# read the .cshrc and overwrite the path.source ../../env.cfgset MODE = "echo"if ($1 == "-q") then   set MODE = "quiet"   shiftendifif ("$3" == "" || $4 != "") then  echo Usage:   echo "    runStylizer  {-q} <stylesheet> <xmlFile> <outputFile>"  exitendifecho Running Stylizer: $*rm -f ../samples/$3.html$BIN/run  Stylizer ../samples/$1 ../samples/$2  >& ../samples/$3.html# The result of running stylizer is an HTML file. # Leave it that way, and let users view it normally.# But convert the HTML to preformatted text, as well,# to make it easy to insert into the HTML page. rm -f ../samples/${3}-src.htmltext2html ../samples/$3.html > ../samples/${3}-src.htmlif ($MODE == "echo") then   more ../samples/$3.htmlendif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?