Hi Pelle:
I adapted your new add-in syntax highlighter to BCX syntax and converted the DLL to BCX BASIC. I needed to make only a few small changes to code folding and for multi-line comments. It works very well, and is very fast, even with 400+ keywords!
I have a question about how best to run the BCX translator before compiling the source. I am using code like this;
AddIn_SendIDECommand(g_hwndMain,AIC_FILE_SAVEALL);
system(join(4,BcxPath() , "BC " , bcxbuf , " -p"));
AddIn_SendIDECommand(g_hwndMain,AIC_PROJ_BUILDALL);
And it works fine, but I need a way to automatically refresh the C source file if it is open in the IDE during the translation process. I don’t want to leave the C file open but not updated.
Is there a way to refresh files from disk?
Can I close and reopen a file in the IDE?
Am I using the wrong command to run the translator? I want the translation to complete before the BUILD starts.
Can you offer any suggestions?
Thanks very much for your work!
Garvan