Skip to content
created by Aha00aAha00a at 2008-02-21
last modified by Aha00aAha00a at 2026-09-08
revision: 18
  • TracWiki의 WikiProcessor
  • trac에 기본으로 포함되어 있는 SyntaxHighlight는 지원하는 언어가 몇가지 안돼서 불만이었음.
  • SyntaxHighlight 기능을 제공
  • Vim(정확히는 gvim)와 2html.vim을 이용 - 내가 이용하는 Vim의 색상과 동일하게 나온다. 만족.

1. 문법

첫번째 라인에 #!Vim , 두번째 라인에 #!문법이름을 기입하고, 소스를 붙여넣는다.

#include <iostream>
#include <cstdlib>

int main()
{
    std::cout << "Hello, Vim!" << std::endl;
    return EXIT_SUCCESS;
}

2. Download / Release

TODO

3. 적용방법

3.1. Trac ver 0.10.x

  • source:/TracWikiMacro/Vim.py를 다운받아서 trac/wiki-macros에 복사한다.
  • trac/log 디렉터리의 권한을 확인하고, others에 write권한이 없다면 추가해 준다.
$ chmod o+w trac/log

3.2. Trac ver 0.11.x

  • TODO

4. Demo

4.1. Vim

#include <iostream>
#include <cstdlib>

int main()
{
    std::cout << "Hello, Vim!" << std::endl;
    return EXIT_SUCCESS;
}

5. Feedback

6. Dev

Python


AhaWiki에 #!Vim으로 예~전에 구현되었다. 이 페이지는 보관. --2018-02-16

7. See Also

7.1. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

  • Same Wiki
    • 48.48% TracSetting trac(14:25), vim(11:1), wiki(5:4), macro(3:5), include(4:1), 내가(1:4), aha(3:1), todo(2:2), 나온다(1:1), 만족(1:1)
    • 41.91% TracSettingHowTo trac(14:33), python(1:16), wiki(5:1), py(2:3), aha00a(1:4), aha(3:1), main(2:1), 권한을(1:2), 이용하는(1:1)
    • 37.95% VimSyntax vim(11:27), syntax(2:15)
    • 31.54% Trac trac(14:9), wiki(5:2), source(3:1), dev(2:1), 있는(1:2)
  • Sister Wikis

7.2. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+