Hi,
I just downloaded the 15-day trial and have a few quick questions. I've already played with writing my own dynamic language xml file, and though I can't get everything I need to work, it's probably close enough for my needs. But I have a few quick questions before I can commit to plunking down the cash :-)
[Big apologies in advance if the answers should have been obvious to me - I've immersed myself in the .chm help but some of the links don't work, or the information I want just isn't there.]
I'll need to use the control for both well-known file types (.html, .css, etc.) and a few custom ones (Ruby, and some in-house languages).
1. Our syntax is pretty simple: classes contain methods. Classes start with the keyword "class" and methods start with the keyword "def". Both are terminated with the keyword "end" (internal looping contructs start with "do" and stop with "end"). I've got all the color coding working, but for my real project I'll want to know the current method and class for an arbitrary location in the file. This is because I want a right-click menu at the current cursor locaton to change based on the current method name and class name. Is this easily done? I didn't see a Document method or property that looked promising.
2. Also, I need to easily find out where the current method starts/ends and the current class starts/ends so I can provide refactoring support. How do I do this? The sample has something similar, using a combobox to show the current class and method, but that seems to only support .NET languages. And, I may not want to turn on folding/outlining, but still want to understand the semantics of the code surrounding the current caret location. Is this possible?
3. Lastly, I want to activate a snippet at runtime whenever the user hits the TAB key based on the previous word; in other words, I want to look at the previous word (i.e. "for") and if the user presses the tab key next, I want to run the "for" snippet to provide a skeleton of the for loop. How do I do this?
4. Really lastly, does the purchased version contain more lexers (like for Ruby or JavaScript)? If not, that's no problem, I'm just curious.
Thanks a lot!
Jeff
I just downloaded the 15-day trial and have a few quick questions. I've already played with writing my own dynamic language xml file, and though I can't get everything I need to work, it's probably close enough for my needs. But I have a few quick questions before I can commit to plunking down the cash :-)
[Big apologies in advance if the answers should have been obvious to me - I've immersed myself in the .chm help but some of the links don't work, or the information I want just isn't there.]
I'll need to use the control for both well-known file types (.html, .css, etc.) and a few custom ones (Ruby, and some in-house languages).
1. Our syntax is pretty simple: classes contain methods. Classes start with the keyword "class" and methods start with the keyword "def". Both are terminated with the keyword "end" (internal looping contructs start with "do" and stop with "end"). I've got all the color coding working, but for my real project I'll want to know the current method and class for an arbitrary location in the file. This is because I want a right-click menu at the current cursor locaton to change based on the current method name and class name. Is this easily done? I didn't see a Document method or property that looked promising.
2. Also, I need to easily find out where the current method starts/ends and the current class starts/ends so I can provide refactoring support. How do I do this? The sample has something similar, using a combobox to show the current class and method, but that seems to only support .NET languages. And, I may not want to turn on folding/outlining, but still want to understand the semantics of the code surrounding the current caret location. Is this possible?
3. Lastly, I want to activate a snippet at runtime whenever the user hits the TAB key based on the previous word; in other words, I want to look at the previous word (i.e. "for") and if the user presses the tab key next, I want to run the "for" snippet to provide a skeleton of the for loop. How do I do this?
4. Really lastly, does the purchased version contain more lexers (like for Ruby or JavaScript)? If not, that's no problem, I'm just curious.
Thanks a lot!
Jeff