Script for modifying document syntax file

Ask questions about how to create a script or swap scripts with other users.
Post Reply
jfournier
Posts: 3
Joined: 30 Sep 2006 06:26

Script for modifying document syntax file

Post by jfournier »

Hi,
Is there any way using scripts to modify the syntax file for a document?

Basically what I'd like to be able to do is run a script to "compile" the code I'm working on, except instead of really compiling I'd just like to be able to identify any variable declarations and what type they are, and have it so autocomplete works using the variable's name.

For example, say I have a variable jon of type fizz with a method buzz, so in my syntax file I'd already have defined what a buzz's autocomplete looks like, so can I apply buzz's autocomplete to jon?

Thanks.

Jon
User avatar
Rickard Johansson
Site Admin
Posts: 6625
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

If you create and add your files to a project it's possible to use auto completion in this way. At least if the programming language uses one of the syntaxes below:

Cpp
CSharp
Delphi/Pascal
Java
PHP
VB .Net

It may be possible to create scripts. You may need at least two. One that parse the document and create a data file (info on classes, variables...). And one that read the correct data from the file, opens a list box and let you select the class method/property...
Post Reply