主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Imants Cekusins
活动总数
410
最后的活动
2024年06月25日 06:27
成员加入日期
2015年07月30日 11:35
关注
0 名用户
关注者数
0 名用户
投票数
15
订阅数
108
活动概览
帖子(12)
评论(275)
按最近的活动排序
最近的活动
投票数
创建于
2016年01月20日 06:57
here is a file where you could start searching: https://github.com/JetBrains/intellij-community/blob/master/xml/xml-psi-api/src/com/intellij/psi/xml/XmlFile.java
社区
IntelliJ IDEA Open API and Plugin Development
How to intercept and process code nodes (syntax and highlight)
0 票
创建于
2016年01月20日 10:20
not sure if there is possibility to easily (automatically) mix different languages. you may try to define your own language type, BNF syntax etc. This is not simple.
社区
IntelliJ IDEA Open API and Plugin Development
How to intercept and process code nodes (syntax and highlight)
0 票
创建于
2016年01月20日 10:38
here is very extensive example of working BNF: https://github.com/ignatov/intellij-erlang/blob/master/grammars/erlang.bnf It works very well. This is not my plugin.
社区
IntelliJ IDEA Open API and Plugin Development
How to intercept and process code nodes (syntax and highlight)
0 票
创建于
2016年06月05日 13:07
> parser and lexer already works. well done! I thought this was the stumbling block. > And I wonna to write tests for it. Is there way to just pass Text of my lang and it lexer to Parser and comp...
社区
IntelliJ IDEA Open API and Plugin Development
Custom language support with handbuilt lexer and parser
0 票
创建于
2016年06月05日 11:39
Hello Ivan, are you trying to implement own lexer and parser from 0?
社区
IntelliJ IDEA Open API and Plugin Development
Custom language support with handbuilt lexer and parser
0 票
创建于
2016年06月03日 12:33
this might work (not tested): EditorFactory.getInstance().createEditor(...)
社区
IntelliJ IDEA Open API and Plugin Development
Navigate among files in a project
0 票
创建于
2016年06月03日 12:02
Hello Sajith, to navigate from a symbol in code (e.g. symbol which points to a file), you can resolve symbol to that file. Then you can navigate to file by ctrl click PsiFile subclasses PsiElement.
社区
IntelliJ IDEA Open API and Plugin Development
Navigate among files in a project
0 票
创建于
2016年06月01日 12:01
I understand. It is a lot of time and work, yes. If there is not enough time, maybe it's best to focus on another part of plugin and leave formatting for later. Formatting is very tricky. Just to c...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
创建于
2016年06月01日 11:46
well this is not a recommended approach to formatting. it works though. Sometimes indenting logic does not fit the built-in cases. Then there is no choice but to use spaces. let's give newlines (CR...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
已编辑于
2016年06月01日 11:18
getSpacing should work (indent text by specified # of spaces) if Indent is not used. let's try this: use null everywhere Indent is currently used check if getSpacing is called for every block. Eve...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
«
第一页
‹
上一页
下一页
›
最后
»