主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
简体中文
English (United States)
登录
Alexander Zolotov
活动总数
721
最后的活动
2023年11月01日 08:52
成员加入日期
2011年04月05日 22:39
关注
0 名用户
关注者数
0 名用户
投票数
0
订阅数
241
活动概览
文章(0)
帖子(0)
评论(480)
按最近的活动排序
最近的活动
投票数
创建于
2016年11月22日 16:35
You still can store the mapping between file and target language somewhere and read this mapping in a language substitutor.The easiest way to do it is to store the language selected by The easiest ...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月22日 16:28
I'd recommend you to read the code of IntelliJ platform and debug all things that you're trying to do. For example, take a look at https://github.com/JetBrains/intellij-community/blob/master/platfo...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月22日 16:15
So have you implemented language substitutor or not?
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
已编辑于
2016年11月22日 15:50
Oh, sorry, it seems you changed the language. > So my question remains, how do I change the file type of a VirtualFile on the fly? There is no way. VitualFile#getFileType has nothing to do with a l...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月22日 15:46
Hi Eugene, It's not supposed to invoke LanguageSubstitutors.INSTANCE.substituteLanguage manually unless you do this from some FileViewProvider. You should implement your own LanguageSubstitutor ext...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
已编辑于
2016年11月14日 17:37
Details needed. Have you tried to debug it? Does the language substitutor handle file correctly and select proper language?
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月14日 17:21
> From the LanguageAction code it seems like every time the language is changed, a new file is created, is that correct? Indeed, looks like that particular example is not the best one. Couldn't fin...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月14日 17:03
> I did figure out the syntax highlighting part, but formatting, folding and validation still don't work as expected. I think that file reparsing will help (FileContentUtilCore#reparseFiles), but i...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月14日 15:01
正式评论
Hi Eugene, It's hard to answer without knowing a real problem you're trying to solve and without knowing the context where you're going to change the language of a created editor. Likely you want t...
社区
IntelliJ IDEA Open API and Plugin Development
Is it possible to change the Editor language / content type dynamically?
0 票
创建于
2016年11月13日 16:42
正式评论
Hi Jechlin, Please try `intellij.plugins = ["Groovy"]` instead. > I could not get 1.10.0 to work, it showed no intellij tasks at all. Cannot help with this. Please file an issue with details an...
社区
IntelliJ IDEA Open API and Plugin Development
using plugin classes with gradle build
0 票
«
第一页
‹
上一页
下一页
›
最后
»