| r2686 vs r2687 | ||
|---|---|---|
| ... | ... | |
| 207 | 207 | == 나무나무마크구상2 == |
| 208 | 208 | 할거 : wiki/darkstyle/+/-/#fff |
| 209 | 209 | 리터럴귀찮음 if folding syntax는 될리가없음 |
| 210 | input=냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue"<br>냥\}\}\} | |
| 210 | input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}' | |
| 211 | 211 | ##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ |
| 212 | 212 | |
| 213 | 213 | {{{#!wiki style="display: none" |
| 214 | {{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue"<br>냥\}\}\}' | |
| 214 | {{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}' | |
| 215 | 215 | }}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| 216 | 216 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 217 | 217 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| ... | ... | |
| 250 | 250 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
| 251 | 251 | }}} |
| 252 | 252 | }}} |
| 253 | {{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 254 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 255 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 256 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 257 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 258 | }}} | |
| 259 | }}} | |
| 260 | }}} | |
| 253 | 261 | }}} |
| 254 | 262 | }}} |
| 255 | 263 | ######################################################################## |
| ... | ... | |
| 292 | 300 | }}} |
| 293 | 301 | }}} |
| 294 | 302 | {{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
| 295 | {{{#!if BrL = input.substring() | |
| 303 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 304 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 305 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 306 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 307 | }}} | |
| 296 | 308 | }}} |
| 297 | 309 | }}} |
| 298 | 310 | }}} |
| 299 | 311 | }}} |
| 300 | 312 | ############################## |
| 301 | ||
| 313 | }}} | |
| 302 | 314 | output: {{{#!html @input@}}} |
| 303 | 315 | == ㅁㄴㅇㄹ == |
| 304 | 316 | [include(a)]''''''[include(a)][include(a)] |
| ... | ... |