I'm just hitting my head against the wall, trying to script something for InDesign CS2 in Visual Basic. The closest syntax highlighter I found it Visual Basic 5.0. It omits lotsa objects and methods use in InDesign.
What do I do?
I have Visual Studio but this is WAY too bulky for what I'm doing. It has a way to connect to the Object Browser of the InDesign.
Can TextPad come up with something similar.
It would be priceless.
Michael
VB scripting for indesign
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
VB scripting for indesign
Only for the insane the fee for entrance is reason
If you can find a way to retrieve the keywords, it's pretty straightforward: Open a syntax file that closely resembles one you need (for instance this one: http://www.textpad.com/add-ons/files/sy ... ript56.zip), the syntax is very easy, just add the words you want highlighted to one of the "sections"
I don't know how the keywords are stored in this dll, maybe you can use a tool such as ResourceHacker to retrieve them, or manually copy/paste them from the Scripting Guide, which you can download here: http://www.adobe.com/products/indesign/ ... riptingref
Code: Select all
[Keywords 5]
MyKeyword
MyOtherKeyword
thanks,
i managed to make a list of objects. Ha, only took me about an hour. Next question is: is it possible to highlight the errors? Or complete words as I type? I admit I didn't read all the documentation yet but from what I could see - no.
Michael
i managed to make a list of objects. Ha, only took me about an hour. Next question is: is it possible to highlight the errors? Or complete words as I type? I admit I didn't read all the documentation yet but from what I could see - no.
Michael
Only for the insane the fee for entrance is reason