LF2語法上色-源碼

LF2語法上色的php原始碼

Read more...

<?php @$getting= $_POST['input']; $getting= eregi_replace("\\\\\\\\","\\",$getting); echo $getting; ?>
<?php
    @$input= $_POST['input'];
    $input= eregi_replace("\\\\\\\\","\\",$input);
    $input= eregi_replace("name: ","<font color=\"red\">name:</font> ",$input);
    $input= eregi_replace("head: ","<font color=\"red\">head:</font> ",$input);
    $input= eregi_replace("small: ","<font color=\"red\">small:</font> ",$input);
    $input= eregi_replace("file\(","<font color=\"red\">file(",$input);
    $input= eregi_replace("): ","):</font> ",$input);
    $input= "<pre style=\"background-color:#FEEBEB;overflow-x:scroll\">".$input."</pre>";
    $input= eregi_replace("walking_frame_rate ","<font color=\"red\">walking_frame_rate</font> ",$input);
    $input= eregi_replace("row: ","<font color=\"red\">row:</font> ",$input);
    $input= eregi_replace("w: ","<font color=\"red\">w:</font> ",$input);
    $input= eregi_replace("h: ","<font color=\"red\">h:</font> ",$input);
    $input= eregi_replace("col: ","<font color=\"red\">col:</font> ",$input);
    $input= eregi_replace("walking_speed ","<font color=\"red\">walking_speed</font> ",$input);
    $input= eregi_replace("walking_speedz ","<font color=\"red\">walking_speedz</font> ",$input);
    $input= eregi_replace("running_frame_rate ","<font color=\"red\">running_frame_rate</font> ",$input);
    $input= eregi_replace("running_speed ","<font color=\"red\">running_speed</font> ",$input);
    $input= eregi_replace("running_speedz ","<font color=\"red\">running_speedz</font> ",$input);
    $input= eregi_replace("heavy_<","<font color=\"red\">heavy_</font><",$input);
    $input= eregi_replace("jump_height ","<font color=\"red\">jump_height</font> ",$input);
    $input= eregi_replace("jump_distance ","<font color=\"red\">jump_distance</font> ",$input);
    $input= eregi_replace("jump_distancez ","<font color=\"red\">jump_distancez</font> ",$input);
    $input= eregi_replace("dash_height ","<font color=\"red\">dash_height</font> ",$input);
    $input= eregi_replace("dash_distance ","<font color=\"red\">dash_distance</font> ",$input);
    $input= eregi_replace("dash_distancez ","<font color=\"red\">dash_distancez</font> ",$input);
    $input= eregi_replace("rowing_height ","<font color=\"red\">rowing_height</font> ",$input);
    $input= eregi_replace("rowing_distance ","<font color=\"red\">rowing_distance</font> ",$input);
    $input= eregi_replace("pic: ","<font color=\"red\">pic:</font> ",$input);
    $input= eregi_replace("state: ","<font color=\"red\">state:</font> ",$input);
    $input= eregi_replace("wait: ","<font color=\"red\">wait:</font> ",$input);
    $input= eregi_replace("next: ","<font color=\"red\">next:</font> ",$input);
    $input= eregi_replace("dvx: ","<font color=\"red\">dvx:</font> ",$input);
    $input= eregi_replace("dvy: ","<font color=\"red\">dvy:</font> ",$input);
    $input= eregi_replace("centerx: ","<font color=\"red\">centerx:</font> ",$input);
    $input= eregi_replace("centery: ","<font color=\"red\">centery:</font> ",$input);
    $input= eregi_replace("hit_a: ","<font color=\"red\">hit_a:</font> ",$input);
    $input= eregi_replace("hit_d: ","<font color=\"red\">hit_d:</font> ",$input);
    $input= eregi_replace("hit_j: ","<font color=\"red\">hit_j:</font> ",$input);
    $input= eregi_replace("wpoint:","<font color=\"green\">wpoint:</font> ",$input);
    $input= eregi_replace("wpoint_end:","<font color=\"green\">wpoint_end:</font> ",$input);
    $input= eregi_replace("kind: ","<font color=\"red\">kind:</font> ",$input);
    $input= eregi_replace("x: ","<font color=\"red\">x:</font> ",$input);
    $input= eregi_replace("injury: ","<font color=\"red\">injury:</font> ",$input);
    $input= eregi_replace("y: ","<font color=\"red\">y:</font> ",$input);
    $input= eregi_replace("weaponact: ","<font color=\"red\">weaponact:</font> ",$input);
    $input= eregi_replace("attacking: ","<font color=\"red\">attacking:</font> ",$input);
    $input= eregi_replace("cover: ","<font color=\"red\">cover:</font> ",$input);
    $input= eregi_replace("dvz: ","<font color=\"red\">dvz:</font> ",$input);
    $input= eregi_replace("bdy:","<font color=\"green\">bdy:</font> ",$input);
    $input= eregi_replace("bdy_end:","<font color=\"green\">bdy_end:</font> ",$input);
    $input= eregi_replace("itr:","<font color=\"green\">itr:</font> ",$input);
    $input= eregi_replace("itr_end:","<font color=\"green\">itr_end:</font> ",$input);
    $input= eregi_replace("catchingact: ","<font color=\"red\">catchingact:</font> ",$input);
    $input= eregi_replace("caughtact: ","<font color=\"red\">caughtact:</font> ",$input);
    $input= eregi_replace("sound: ","<font color=\"red\">sound:</font> ",$input);
    $input= eregi_replace("vrest: ","<font color=\"red\">vrest:</font> ",$input);
    $input= eregi_replace("bdefend: ","<font color=\"red\">bdefend:</font> ",$input);
    $input= eregi_replace("fall: ","<font color=\"red\">fall:</font> ",$input);
    $input= eregi_replace("arest: ","<font color=\"red\">arest:</font> ",$input);
    $input= eregi_replace("cpoint:","<font color=\"green\">cpoint:</font> ",$input);
    $input= eregi_replace("cpoint_end:","<font color=\"green\">cpoint:</font> ",$input);
    $input= eregi_replace("vaction: ","<font color=\"red\">vaction:</font> ",$input);
    $input= eregi_replace("throwvz: ","<font color=\"red\">throwvz:</font> ",$input);
    $input= eregi_replace("hurtable: ","<font color=\"red\">hurtable:</font> ",$input);
    $input= eregi_replace("throw<","<font color=\"red\">throw</font><",$input);
    $input= eregi_replace("decrease: ","<font color=\"red\">decrease:</font> ",$input);
    $input= eregi_replace("aaction: ","<font color=\"red\">aaction:</font> ",$input);
    $input= eregi_replace("taction: ","<font color=\"red\">taction:</font> ",$input);
    $input= eregi_replace("fronthurtact: ","<font color=\"red\">fronthurtact:</font> ",$input);
    $input= eregi_replace("backhurtact: ","<font color=\"red\">backhurtact:</font> ",$input);
    $input= eregi_replace("dircontrol: ","<font color=\"red\">dircontrol:</font> ",$input);
    $input= eregi_replace("throwv<","<font color=\"red\">throwv</font><",$input);
    $input= eregi_replace("hit_Fa: ","<font color=\"red\">hit_Fa:</font> ",$input);
    $input= eregi_replace("hit_Ua: ","<font color=\"red\">hit_Ua:</font> ",$input);
    $input= eregi_replace("hit_Da: ","<font color=\"red\">hit_Da:</font> ",$input);
    $input= eregi_replace("hit_Uj: ","<font color=\"red\">hit_Uj:</font> ",$input);
    $input= eregi_replace("bpoint:","<font color=\"green\">bpoint:</font> ",$input);
    $input= eregi_replace("bpoint_end:","<font color=\"green\">bpoint_end:</font> ",$input);
    $input= eregi_replace("opoint:","<font color=\"green\">opoint:</font> ",$input);
    $input= eregi_replace("opoint_end:","<font color=\"green\">opoint_end:</font> ",$input);
    $input= eregi_replace("action: ","<font color=\"red\">action:</font> ",$input);
    $input= eregi_replace("oid: ","<font color=\"red\">oid:</font> ",$input);
    $input= eregi_replace("facing: ","<font color=\"red\">facing:</font> ",$input);
    $input= eregi_replace("mp: ","<font color=\"red\">mp:</font> ",$input);
    $input= eregi_replace("effect: ","<font color=\"red\">effect:</font> ",$input);
    $input= eregi_replace("hit_Fj: ","<font color=\"red\">hit_Fj:</font> ",$input);
    $input= eregi_replace("hit_Dj: ","<font color=\"red\">hit_Dj:</font> ",$input);
    $input= eregi_replace("hit_ja: ","<font color=\"red\">hit_ja:</font> ",$input);

    $code= $input;
    $input= eregi_replace("<bmp_begin>","<font color=\"blue\">&#60;bmp_begin></font>",$input);
    $code= eregi_replace("<bmp_begin>","<font color=\"blue\">&amp;#60;bmp_begin></font>",$code);
    $input= eregi_replace("<bmp_end>","<font color=\"blue\">&#60;bmp_end></font>",$input);
    $code= eregi_replace("<bmp_end>","<font color=\"blue\">&amp;#60;bmp_end></font>",$code);
    $input= eregi_replace("<frame>","<font color=\"blue\">&#60;frame></font>",$input);
    $code= eregi_replace("<frame>","<font color=\"blue\">&amp;#60;frame></font>",$code);
    $input= eregi_replace("<frame_end>","<font color=\"blue\">&#60;frame_end></font>",$input);
    $code= eregi_replace("<frame_end>","<font color=\"blue\">&amp;#60;frame_end></font>",$code);
    echo "<form><br>html語法︰<textarea name=\"output\" style=\"width:100%;height:300px;\">".$code."</textarea></form>";
    echo "<br>預覽︰<br>".$input;
?>

沒有留言:

張貼留言