문제

Is there any Eclipse plugin to do syntax highlighting and autocomplete for Varnish VCL?

I know that you can use vim and there is a syntax file for VCL, so please do not recommend this.

도움이 되었습니까?

해결책

As of 2014/03/06, there is no dedicated plugin for VCL. Alternatively, you can get syntax highlighting with opening vcl file with "C/C++ Editor" included in Eclipse CDT (C/C++ Development Tooling) as vcl syntax is almost same as C language. There is no autocomplete with this method.

Instruction: right click on default.vcl -> open with -> other -> (Check box on for Internal editors) -> C/C++ Editor -> push OK button.

CDT update site: http://download.eclipse.org/tools/cdt/releases/kepler

Tip: With Remote System Explorer in Eclipse TM (Target Management) Project, you can edit/save default.vcl dynamically in the server. After you edit,save with C/C++ Editor, you can command "service varnish reload" in Remote Shell View.

TM update site: http://download.eclipse.org/tm/updates/3.5

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top