TOP Character reference
Wiki記法リファレンス
Wiki記法リファレンス
アンダースコア2個 | __attribute__ | __attibute__ |
ident(space x4) | ident | ident |
backslash | \ | \ |
slash-slash | // | // |
mid-dot | · | · |
強制改行 | 1 2 3 | 1~~2~~3 |
tilda-tilda | ~~ | ~~ |
asterisk | * | * |
exclamation | ! | ! |
yen | ¥ | ¥ |
color | green on black | &color(green,black){green on black} |
at mark | @ | @ |
Zero | 0 | 0 |
asterisk | * | * |
bar | | | | |
[ | [ | [ |
] | ] | ] |
minus | - | - |
plus | + | + |
> | > | > |
< | < | < |
carret | ^ | ^ |
<pre></pre> | sample | =|| formatted text ||= |
anchor name= | &aname(anchor) | |
sup | 102 | 10&sup(){2} |
sub | Aij | A__ij__ |
footnote | *1 *2 | ((foot note1)) ((foot note2)) |
記法名 | 記法 | 説明 |
箇条書きリスト-〜〜 --〜〜 ---〜〜 | 箇条書きのリスト(<ul><li>)を作成します | |
番号付きリスト | +〜〜 ++〜〜 +++〜〜 | 番号付きのリスト(<ol><li>)を作成します |
定義リスト | :定義語|説明文 | 定義リスト(<dl><dt><dd>)を作成します |
- UL1 -UL1
- UL2 -UL2
- UL2.1 --UL2.1
- UL2.2 --UL2.2
- UL2.2.1 ---UL2.2.1
- UL2.2.2 ---UL2.2.2
- UL2.3 --UL2.3
- UL3 -UL3
- OL1 +OL1
- OL2 +OL2
- OL2.1 ++OL2.1
- OL2.2 ++OL2.2
- OL2.2.1 +++OL2.2.1
- OL2.2.2 +++OL2.2.2
- OL2.3 ++OL2.3
- OL3 +OL3
- DT1
- DD1.0 :DT1|DD1.0
- DT2
- DD2.0|DD2.1 :DT2|DD2.0&124;DD2.1 ... DD2.1 won't work
- DT4
- DT4.0 :DT4|DD4.0
horizontal connection | put '>' in the left column to be merged | |
> | horizontal connection | |
vertical connection | put '^' at lower cell | |
^ |
// console application
// vim:encoding=cp932
// vim:fileencoding=utf-8
#include <stdio.h>
#include <stdlib.h>
#ifndef TRUE
#define TRUE (0==0)
#define FALSE (!TRUE)
#endif
struct {
char i;
short j;
char k;
} __attribute__ *3 TEST1;
char tilda( char i){
return ~i;
}
int main(int argc,char ** argv){
int c;
int prev_c = '\0';
int lf;
int spc;
int tab=0;
while *4 != EOF){
if(prev_c == '\n') lf = TRUE;
else lf=FALSE;
if(prev_c == ' '|| prev_c == '\t') spc = TRUE;
else spc=FALSE;
if(lf==TRUE) tab = 0;
prev_c = c;
tab ++;
if(lf == TRUE){
switch(c){
case '/': printf("/"); break;
case '\\': printf("\"); break;
case '~': printf("~"); break;
case '_': printf("_") ; break;
case ' ': printf(" ") ; break;
case '*': printf("*") ; break;
case '&': printf("&") ; break;
case '<': printf("<") ; break;
case '>': printf(">") ; break;
case '\t':
do {
printf(" ") ;
} while ((tab++ %4) != 0);
break;
default:
putchar(c);
}
} else {
switch(c){
case '_': printf("_") ; break;
case '&': printf("&") ; break;
case '<': printf("<") ; break;
case '>': printf(">") ; break;
case '\t':
do {
printf(" ") ;
} while ((tab++ %4) != 0);
case ' ':
if(spc == TRUE) printf(" ") ;
else putchar(c);
break;
default:
putchar(c);
}
}
}
return EXIT_SUCCESS;
}
// vim:encoding=cp932
// vim:fileencoding=utf-8
#include <stdio.h>
#include <stdlib.h>
#ifndef TRUE
#define TRUE (0==0)
#define FALSE (!TRUE)
#endif
struct {
char i;
short j;
char k;
} __attribute__ *3 TEST1;
char tilda( char i){
return ~i;
}
int main(int argc,char ** argv){
int c;
int prev_c = '\0';
int lf;
int spc;
int tab=0;
while *4 != EOF){
if(prev_c == '\n') lf = TRUE;
else lf=FALSE;
if(prev_c == ' '|| prev_c == '\t') spc = TRUE;
else spc=FALSE;
if(lf==TRUE) tab = 0;
prev_c = c;
tab ++;
if(lf == TRUE){
switch(c){
case '/': printf("/"); break;
case '\\': printf("\"); break;
case '~': printf("~"); break;
case '_': printf("_") ; break;
case ' ': printf(" ") ; break;
case '*': printf("*") ; break;
case '&': printf("&") ; break;
case '<': printf("<") ; break;
case '>': printf(">") ; break;
case '\t':
do {
printf(" ") ;
} while ((tab++ %4) != 0);
break;
default:
putchar(c);
}
} else {
switch(c){
case '_': printf("_") ; break;
case '&': printf("&") ; break;
case '<': printf("<") ; break;
case '>': printf(">") ; break;
case '\t':
do {
printf(" ") ;
} while ((tab++ %4) != 0);
case ' ':
if(spc == TRUE) printf(" ") ;
else putchar(c);
break;
default:
putchar(c);
}
}
}
return EXIT_SUCCESS;
}
最新コメント