2: 2011-01-26 (水) 20:01:49 eid7gud | 現: 2011-01-27 (木) 17:19:27 eid7gud | ||
---|---|---|---|
Line 1: | Line 1: | ||
TITLE:ソースコードの書き方 | TITLE:ソースコードの書き方 | ||
**書き方 [#wee2b6fd] | **書き方 [#wee2b6fd] | ||
+ | -wiki | ||
#html{{ | #html{{ | ||
- | <pre class="brush: Brush aliases"> | + | <pre class="brush: xxxx"> |
プログラムを書く | プログラムを書く | ||
</pre> | </pre> | ||
}} | }} | ||
+ | -html | ||
+ | <pre class="brush: xxxx"> | ||
+ | プログラムを書く | ||
+ | </pre> | ||
- | Brush aliasesには言語に応じて以下のBrush aliasesを入れる。 | + | xxxxには言語に応じて以下のBrush aliasesを入れる。 |
- | |Brush name|Brush aliases| | + | |''Brush name''|''Brush aliases''| |
|C++, c|cpp, c| | |C++, c|cpp, c| | ||
|Java|java| | |Java|java| | ||
+ | |C#|c-sharp, csharp| | ||
+ | |CSS|css| | ||
+ | |Delphi|delphi, pas, pascal| | ||
+ | |JavaScript|js, jscript, javascript| | ||
+ | |Perl|perl, pl| | ||
+ | |PHP|php| | ||
+ | |Phthon|py, python| | ||
+ | |Ruby|rails, ror, ruby| | ||
+ | |SQL|sql| | ||
+ | |Visual Basic|vb, vbnet| | ||
+ | |XML|xml, xhtml, xslt, html, xhtml| | ||
- | 編集した直後はwikiのソース表示になるのでF5。 | + | プログラム内の |
< は < | < は < | ||
> は > | > は > | ||
- | に書き換える。 | + | に書き換えた方が良い。 |
**例 [#of3f8f24] | **例 [#of3f8f24] | ||
+ | 編集した直後はwikiのソース表示になることがあるので更新。 | ||
#html{{ | #html{{ | ||
- | <pre class="brush: c"> | + | <pre class="brush: c;"> |
#include <fd.h> | #include <fd.h> | ||
#define KEY_QUIT { if(fd_rx_buff()) fd_SoftReset();} | #define KEY_QUIT { if(fd_rx_buff()) fd_SoftReset();} |