CooCooWakka : VimFormatter

首页 :: 索引 :: 修订历史 :: 最新评论 :: CooCooWakkaGroup :: 登陆/注册 :: 你好, 38.103.63.62
你的足迹: » VimFormatter
由于本站頁面是以簡體中文儲存,你現在看到的是動態轉換生成的繁體中文版本。
本動態轉換功能依然處于測試開發階段。返回

VimFormatter

注意:請先查看GeshiFormatter,在GeshiFormatter能滿足你需求的情況下,它是一個更好的選擇。
功能:這是一個調用Vim([External Link]Vi IMproved)進行處理的Formatter?,它利用了Vim支持對大量不同種類文件進行語法高亮度顯示的功能,讓CooCooWakka的代碼框支持更多的語法高亮度顯示。
注意:該Formatter理論上支持任何vim支持的文件類型,但並沒有完全接受測試,如果發現問題,請與我聯系
需求:
CooCooWakka 0.0.7.8或以上。
默認設置是針對安裝了Vim(調試環境為版本6.2)的Linux/UNIX平台;
如果在Windows下使用,請修改formatters/vim.php中的$vim_cmd為相應vim路徑(未經過測試)。

作者:CooYip
By CooYip at Wed January 7, 2004, 2:49 pm.

問題

暫時沒有找到比較好的配色解決方案。

使用方法


your code here


其中filetype設為代碼的文件類型,(下面會有一個Vim6?.2默認支持的文件類型的列表)

#include <stdio.h>
void main(){
/* your code */
}

#include <stdio.h>
void main(){
/* your code */
}

效果

顯示diff文件:
14c14
< // $Id: wakka.php,v 1.38 2003/11/30 07:18:50 cooyeah Exp $
---
> // $Id: wakka.php,v 1.43 2004/01/07 07:44:42 cooyeah Exp $
17c17
< define("COO_VERSION","0.0.7.5");
---
> define("COO_VERSION","0.0.7.7");
424c424
<               else if (preg_match("/^.+\@.+$/", $tag))
---
>               else if (preg_match("/^.+\@.+\..+$/", $tag))
429c429,438
<               else
---
>
>               /*
>         //Link to "network neighbour"
>         //uncomment it to enable
>         else if (preg_match("/^\\\\.+/",$tag)) //Link to "network neighbour"
>         {
>              return "<a href=\"$tag\">$text</a>";
>         }*/
>
>         else
706c715
<       function Format($text, $formatter = "wakka")
---
>       function Format($text, $formatter = "wakka",$args=)
708c717
<               return $this->IncludeBuffered("formatters/".$formatter.".php", "<i>Formatter \"$formatter\" not found</i>", compact("text"));
---
>         return $this->IncludeBuffered("formatters/".$formatter.".php", "<i>Formatter \"$formatter\" not found</i>", compact("text","args"));
760a770,772
>     function IsManager($user=){
>         return ($this->IsAdmin($user)||$this->UserIsOwner($user));
>     }
1054,1055c1066
<
<               // do our stuff!
---
>         // do our stuff!
1117a1129
>     magicQuotesSuck($_REQUEST);
1288d1299
<
1294d1304
<

Which File types are available in Vim6?.2 by default?

2htmldiffjgraphpfspecman
a65divajpropertiesphpspec
aapdnsjspphtmlspice
abaqusdocbksgmlkixpicsplint
abcdocbkkscriptpikespup
abeldocbkxmlkwtpilrcspyce
acedbdosbatchlacepinesqlforms
adadosinilatteplmsqlj
aflexdotlexplpsql
ahdldraculalftpplsqlsqr
amigadsllhaskellpodsquid
amldtdlifelinespostscrsshconfig
ampldtmlliloposshdconfig
antlrdylanintrlisppovinistp
antdylanlidlitepovstrace
apachestyledylanlogtalkppdst
apacheecdlotosppwizsvn
artedifloutprocmailsyncolor
asm68keiffellpcprogresssynload
asmh8300elflprologprologsyntax
asmelmfiltlscriptpsftads
asnerlanglssptcaptags
aspperlesqlcluapurifylogtakcmp
aspvbsetermlynxpythontakout
atlaseximm4qftak
automakeexpectmailcapquaketasm
aveexportsmailradiancetcl
awkfetchmailmakeratpoisonterminfo
ayaccfglmanualrcslogtexinfo
baanfocexecmanrcstexmf
basicformmaplerctex
bcforthmasmreadlinetf
bdffortranmasonREADME.txttidy
bibfoxpromasterreboltilde
bindzonefstabmatlabregistrytli
blankfvwm2m4melremindtrasys
btmfvwmmfresolvtsalt
bgdbmgprexxtsscl
cataloggdmomibribtssgm
cdlgedcommmarobotstssop
cfggkrellmrcmmixrpcgenuc
cfgnuplotmodconfrpluil
changeloggpgmodelrtfvalgrind
changegpmodsim3rubyvb
chaskellgroffmodula2rverilog
cheetahgrubmodula3sambavgrindefs
chgspmonksasvhdl
cleangtkrcmoosatherviminfo
clipperhaskellmpschemevim
clhbmsidlscilabvirata
cobolhelpmsqlscreenvrml
colortestherculesmushsdlvsejc

SourceForge.net Logo Creative Commons License
请享受共创成果的同时,尊重他人劳动。本站点内容如未特别声明,全部遵循 Creative Commons License by-nc-sa协议发布。