Home | Info | Research | Blog | Repos | Messages | Contact Me

MoniWiki Tips

Contents

1 Vim Processor에 Syntax 추가하기
2 Vim Processor에서 탭문자가 ^I로 보이는 것 수정
3 블로그에서 트랙백이 보내지지 않을때
4 그림파일 크기 및 위치 정하기

1 Vim Processor에 Syntax 추가하기 #

plugin/processor/vim.php
<?
$syntax=array("php","c","python","jsp","sh","cpp",
          "java","ruby","forth","fortran","perl",
          "haskell","lisp","st","objc","tcl","lua",
          "asm","masm","tasm","make",
          "awk","docbk","diff","html","tex","vim",
          "xml","dtd","sql", "config", "conf",
          "nosyntax","apache");
?>
Vim이 지원하는 모든 Syntax를 사용할 수 있습니다.
사용할 수 있는 Syntax를 확인하는 방법은 (Vim 디렉토리)/syntax 디렉토리에 각 언어, 파일 형식별로 .vim 파일이 있습니다. 위 처럼 .vim 파일들의 이름을 추가해 주고 {{{#!vim apache }}}로 추가된 Syntax를 사용할 수 있습니다.


2 Vim Processor에서 탭문자가 ^I로 보이는 것 수정 #

plugin/processor/vim.php
<?
$cmd= "$vim -T xterm -e -s $tmpf ".
' +"syntax on " +"set expandtab" +"retab" +"set syntax='.$type.'" '.$option.
' +"so '.$tohtml.'" +"wq! '.$stdout.'" +q';
?>

+"set expandtab" +"retab"를 추가합니다.

pds/VimProcessor 안에 html 파일을 삭제해야 위의 설정이 적용이 됩니다.
<!> 1.0.9에서는 `config.php`에 $vim_options='+"set expandtab" +"retab"';가 기본적으로 추가되어 있습니다.


3 블로그에서 트랙백이 보내지지 않을때 #

plugin/processor/sendping.php
<?
  ini_set("allow_url_fopen","1");
?>

sendping.php의 do_sendping 함수안에 위의 줄을 추가합니다.

4 그림파일 크기 및 위치 정하기 #

페이지에 첨부된 그림파일이나 링크한 그림파일의 크기와 위치를 조절할 수 있습니다.

첨부파일인 경우
attachment:hello.png?width=100&align=left

링크인 경우
http://www.google.co.kr/logos/monet_logo.gif?width=100&align=left


Login | Title Index | Recent Changes | Edit | Page Info | Search | Subscribe

Copyright © 2003-2009 PYRASIS.COM,. All rights reserved.