履歴: ソフトウェア/pukiwiki/texthighlight.inc.php
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 11 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2020/1/11 11:15:52 | ソフトウェア/pukiwiki/texthighlight.inc.php 最新版 | 10,013 | +1 | -1 | 表示 | 差分 | — |
| 2020/1/11 11:15:52 | ソフトウェア/pukiwiki/texthighlight.inc.php | 10,019 | +6 | -1 | 表示 | 差分 | 選択 |
| 2014/5/14 5:09:19 | ソフトウェア/pukiwiki/texthighlight.inc.php | 9,931 | +19 | -0 | 表示 | 差分 | 選択 |
| 2013/5/9 5:13:36 | ソフトウェア/pukiwiki/texthighlight.inc.php | 9,486 | +2 | -3 | 表示 | 差分 | 選択 |
| 2013/5/9 5:13:36 | ソフトウェア/pukiwiki/texthighlight.inc.php | 9,497 | +1 | -1 | 表示 | 差分 | 選択 |
| 2013/5/9 5:13:36 | ソフトウェア/pukiwiki/texthighlight.inc.php | 9,488 | +42 | -0 | 表示 | 差分 | 選択 |
| 2010/5/11 10:39:48 | ソフトウェア/pukiwiki/texthighlight.inc.php | 8,343 | +9 | -9 | 表示 | 差分 | 選択 |
| 2010/5/11 10:39:48 | ソフトウェア/pukiwiki/texthighlight.inc.php | 8,352 | +30 | -28 | 表示 | 表示中 | 選択 |
| 2010/5/11 10:39:48 | ソフトウェア/pukiwiki/texthighlight.inc.php | 8,174 | +50 | -0 | 表示 | 差分 | 選択 |
| 2009/2/9 11:47:30 | ソフトウェア/pukiwiki/texthighlight.inc.php | 5,798 | +155 | -44 | 表示 | 差分 | 基準 |
| 2009/2/9 7:40:18 | ソフトウェア/pukiwiki/texthighlight.inc.php | 3,271 | — | — | 表示 | — | 選択 |
基準: ソフトウェア/pukiwiki/texthighlight.inc.php (2009/2/9 11:47:30) → 比較: ソフトウェア/pukiwiki/texthighlight.inc.php (2010/5/11 10:39:48)
@@ -48,6 +48,9 @@
|HTML | Pascal | XML |
|Java| Perl| Xorg configuration files|
+あるいは、文法ファイルを頑張って手で書けば、
+その他の言語にも割と簡単に対応させることができます。
+
役に立ちそうだったらご利用ください。
* ソースコード [#s3f0331d]
@@ -217,6 +220,55 @@
margin-left:0.5em;
}
+* Verilog 用の言語ファイル [#i7e26802]
+
+sh_verilog.js
+ LANG:javascript
+ if (! this.sh_languages) {
+ this.sh_languages = {};
+ }
+ sh_languages['verilog'] = [
+ [
+ [ /\/\/[ \t]*synthesis[ \t]+attribute[ \t]/gi, 'sh_preproc', 5 ],
+ [ /^[ \t]*`\w/gi, 'sh_preproc', 5 ],
+ [ /\#[\w._]+/g, 'sh_preproc', -1 ],
+ [ /\/\//g, 'sh_comment', 1 ],
+ [ /\/\*/g, 'sh_comment', 2 ],
+ [ /\(\*\)/g, 'sh_symbol', -1 ],
+ [ /\(\*/g, 'sh_preproc', 4 ],
+ [ /\b\d+\b|(?:\b\d+)?'b[01xz]+\b|(?:\b\d+)?'h[0-9a-fxz]+\b|(?:\b\d+)?'d[\dxz]+\b/gi, 'sh_number', -1],
+ [ /"/g, 'sh_string', 3 ],
+ [ /\$\w+\b/g, 'sh_function', -1 ],
+ [ /(?:\.|\$)\w+\s*(?=\()/g, 'sh_function', -1 ],
+ [ /\b(?:shortint|int|longint|byte|bit|logic|reg|integer|time|signed|unsigned|real|shortreal|void|candle|event|string)\b/g, 'sh_type', -1 ],
+ [ /\b(?:always|end|ifnone|or|rpmos|tranif1|and|endcase|initial|output|rtran|tri|assign|endmodule|inout|parameter|rtr|nif0|tri0|begin|endfunction|input|pmos|rtranif1|tri1|buf|endprimitive|integer|posedge|scalared|triand|bufif0|endspecify|join|primitive|small|trior|bufif1|endtable|large|pull0|specify|trireg|case|endtask|macromodule|pull1|specparam|vectored|casex|event|medium|pullup|strong0|wait|casez|for|module|pulldown|strong1|wand|cmos|force|nand|rcmos|supply0|weak0|deass|gn|forever|negedge|real|supply1|weak1|default|for|nmos|realtime|table|while|defparam|function|nor|reg|task|wire|disable|highz0|not|release|time|wor|edge|highz1|notif0|repeat|tran|xnor|else|if|notif1|rnmos|tranif0|xor)\b/g, 'sh_keyword', -1 ],
+ [ /\b(?:generate|endgenerate|genvar|typedef|class|enum|union|struct|localparam|export|import|context|fork)\b/g, 'sh_keyword', -1 ],
+ [ /~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\||@/g, 'sh_symbol', -1 ],
+ ],
+ [ // 1
+ [ /$/g, null, -2 ],
+ [ /(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
+ 'sh_url', -1 ],
+ ],
+ [ // 2
+ [ /\*\//g, null, -2 ],
+ [ /(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
+ 'sh_url', -1 ],
+ ],
+ [ // 3
+ [ /\\"|\\\\/g, null, -1 ],
+ [ /"/g, 'sh_string', -2 ]
+ ],
+ [ // 4
+ [ /\*\)/g, 'sh_preproc', -2 ],
+ ],
+ [ // 5
+ [ /$/g, 'sh_preproc', -2 ],
+ ],
+ ];
+
+手書きで適当に書いたので不具合もありそうなのですが。
+
* コメント [#x8544523]
#article_kcaptcha