向 Eclipse 添加 GLSL 语法高亮
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8434358/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Adding GLSL syntax highlighting to Eclipse
提问by Yaron Tausky
Is there an Eclipse plugin that adds support for GLSL files? I found something old on Google, but I couldn't get it to work.
是否有增加对 GLSL 文件支持的 Eclipse 插件?我在谷歌上找到了一些旧的东西,但我无法让它工作。
回答by Christopher Bruns
The Eclipse Shadersplugin mentioned by Gilbert Le Blanc works for me with Eclipse Juno.
Gilbert Le Blanc 提到的Eclipse Shaders插件适用于 Eclipse Juno。
Place the contents of the "plugins" folder in your Eclipse plugins folder, and place the contents of the "features" folder in your Eclipse features folder. Then restart Eclipse.
将“plugins”文件夹的内容放在 Eclipse plugins 文件夹中,并将“features”文件夹的内容放在 Eclipse features 文件夹中。然后重新启动 Eclipse。
You might need to name your shaders with the extension ".glsl", or else right click the shader file in Eclipse, ->"Open With"->"GLSL Editor"
您可能需要使用扩展名“.glsl”命名您的着色器,或者在 Eclipse 中右键单击着色器文件,->“打开方式”->“GLSL 编辑器”
回答by petrbroz
回答by Gilbert Le Blanc
Assuming you mean the OpenGL Shading Language, the Eclipse CDTplugin might work well enough.
假设您的意思是 OpenGL 着色语言,Eclipse CDT插件可能工作得很好。
Edited to add: I probably found the same Eclipse Shadersproject on SourceForge that you found.
编辑添加:我可能在 SourceForge 上找到了与您找到的相同的Eclipse Shaders项目。
It appears that there is not a GLSL plugin for Eclipse.
Eclipse 似乎没有 GLSL 插件。
回答by sali
Having Eclipse Shadersdownloaded, place the content of plugins and features folder in corresponding folders in :
有Eclipse的着色器下载,将插件的内容,并在相应的文件夹,文件夹功能:
on Linux:
在 Linux 上:
/usr/share/eclipse/dropins/cdt/eclipse/plugins
on windows:
在窗户上:
in dropins folder (e.g. C:\Program Files\eclipse\dropins)
on OS X:
在 OS X 上:
in dropins folder (/Applications/eclipse/dropins/)