How to implement content assist / syntax highlighting? - ide

I'd like to create an IDE for a language and I'm wondering how to implement some features. In particular syntax highlighting and content assist are troubling as they must work even when editor content is not valid (when user is typing syntax hightlight should not disappear just because parser fails).
I am wondering how to approach this problem (and others as well). I've found this: How does code completion work? with a description of a solution to this problem, but it's rather brief.
I can come up with a way to implement all features I want at some point, but I'm not the first one and someone has done it already ;) (and reading source code of Eclipse is not that easy)
So, my real question is there a book discussing problems related with creating IDE? A detailed article discussing how to parse invalid code? Any source of information I should see?
Ah, and by IDE I don't mean a new application, just a set of plugins for eclipse.

The following link will help you further..
Syntax Highlighting:Fast Colored TextBox for Syntax Highlighting
an OpenSource IDE:SharpDevelop
an eBook How to create IDE:[Dissecting a C# Application: Inside SharpDevelop]

Related

Focus language grammar

I need to extract some info from a list of mainframe scripts written in focus language.
I'm trying to write a java program for parsing source code. Due to the name of the language it is difficult to find any useful information on the internet. Maybe someone know if exist a grammar for this language on internet(for example for antlr4) or maybe an implemented lexer.
Thanks in advance for any response!
Follow this link to the Focus Developer Manuals, then click on the left side to open the list of manuals available.
Note: The link to "FOCUS Developer Manuals" at the bottom of the the WikiPedia page was http://... instead of https://..., and resulted in a connection refused error. I have corrected the Wiki page.
There is a curated list of ANTLR grammars here. Unfortunately, there is no grammar for the focus product.
Not all authors make their grammars available at the above link, you might try searching github and other code repositories.

Maxscript in any jetbrais IDE?

there is currently maxscript programming support inside sublime text.
I was wondering bacause now the syntax highlighting and everything alreay exists for maxscript, how to go about it to make maxscript a supported programming language inside other ide's or editors?
The jetbrains applications comes to mind first (webstorm etc.)
or even inside open online IDE's like Ace of Codemirror.
Because that would be great.
Does anyone knows if that is at all possible, and how to do that?
None of JetBrains IDEs provide support for maxscript:(, and I'm not aware of any custom plugins for this language.
If all you need is a basic syntax highlighting, you can either try searching for MaxSript textmate bundles (see Is it possible to get Ruby syntax highlighting in PHPStorm?) or register your own file type, defining a syntax highlighting for it (http://www.jetbrains.com/webstorm/webhelp/new-file-type.html).
If none of these options look suitable for you, try developing your own language plugins - see http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA
I would recommend Microsoft Visual Studio Code with MaxScript syntax plugin. The syntax highlighting and overall coding experience is close to perfect.
Example of MaxScript syntax highlighting you may see here:

Atomineer Utils VB.NET XML Comment Documentation Not Working

I just downloaded the trial for this application and it doesn't seem to work. I went through the Quick Setup guide and it all looked great. Now when I place my cursor on a member of any type and press Ctrl+Shift+D it does nothing. I placed it on top, inside, etc... Nothing. If I press Ctrl+Shift+A (twice) on top of the member it tells me to place it "in the line of the form MyType myVariable;". I'm not quite sure what this means unless it's referring to C# but this project is VB.NET which it doesn't seem to recognize. Anyone else have this issue? I was hoping it would make things easier since I've read that it can document an entire document rather than having to member by member.
Using VS 2010 Premium.
Drop me an email to support (at) atomineerutils.com with a bit of example code that exhibits the problem, and I'll help you sort it out.
(edit)
Please note that AtomineerUtils only officially supports VB 9 onwards, although where the syntax of earlier versions is compatible (i.e. in most cases), it will still work perfectly well.
I've now investigated this, and I can't repeat the documentation behaviour you have mentioned - it works as expected for me. (However, I did find and fix a regression introduced to the Visual Basic handling in a recent version - a small coding glitch that meant some methods could be incorrectly documented as constructors, so thanks for indirectly helping me find this issue!)
All I can suggest is that if you see a problem in any application, the best (and often only) way to get it fixed is to let the author know!

Xcode 4 built-in help for your own files

Xcode 4 has a very nice built-in help/documentation that you can access e.g. by alt-clicking an identifier in the code, or by opening the help panel in the right sidebar. However, this only works for classes and methods provided by Apple. Is there a way to write some kind of documentation comments (e.g. like the Javadoc comments in Java) in your own code to make Xcode display them in those documentation panels?
http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/HeaderDoc/intro/intro.html
It's maintained by Apple so it should be well supported. I never actually used it, may try it later.
Ok, it looks like there's no good tool really... there are a few different ones, but they're imperfect and difficult to configure. I couldn't get Doxygen or Appledoc to work, and the tool mentioned by Avizzv92 is referred to as "a pile of poo" elsewhere, so I'd rather not try it... :)
Info that I've found:
How do you document your source code in Xcode?
http://wangling.me/2010/07/documentation-set-generation-tool-in-xcode-is-wanted/
http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
http://www.gentlebytes.com/home/appledocapp/
http://lists.apple.com/archives/xcode-users/2011/Apr/msg00238.html

Textmate Code Completion Question

I know the ESC key does code completion, but is there a way to get a pop-up(tool-tip I guess) that shows you all the possible choices for a piece of code? As an example, it would be nice when writing Javascript to get a list of available actions. Other apps I've used like Coda do this. I'd like to check out Textmate but I have a hard time getting past this missing feature which I find pretty valuable, particularly as a fairly new programmer who likes to see what options are there as it's a bit of a learning tool for me also. I thought I had found a plugin like what I'm looking for, Dialog2, but it seems to have disappeared as it was meant to be built-in to the never-released TM2.
I've looked around a fair bit for the answer to this question and figured this was my next best option. Thanks.
I don't have Textmate available to try it out, but I believe that option-Esc is supposed to show you the list of possible code completions.
Check out subtleGradient's tmbundle: https://github.com/subtleGradient/javascript.tmbundle
It knows how to auto-wrap for arrays, and objects. Documentation look-up too.