Dear Sir/Madam,
Your Syn editor is wonderful. I just found for a
while. That which I love the most is the configurable
toolbar through which I can integrate almost
everything I like into that editor.
For example, I can add a button for Perl Inline Script
(see http://64.233.161.104/search?
q=cache:Yikuko7EoBcJ:people.smu.edu/zwang/inline-
scripting.htm+Perl+inline+script+Wang&hl=en&gl=us&ct=cl
nk&cd=1) and other buttons for outside compilers and
interpretors for Java, C/C++, C#, WScript etc. And I
can use a Perl script to choose the very
compiler/interpreter with proper parameters. Also, the
Perl script can prepare the output of all
compilers/interpretors in one format, say, $[FileName]
\($[LineNumber],$[ColNumber]\).
However, it turns out that I have to run Run | Run
File first because no default so-called Output
Expression is available before Run | Run File has been
triggered.
So, would you please set a default Output Expression,
say, $[FileName]\($[LineNumber],$[ColNumber]\), for
any type of file? That would give senior programmers
much more convenience. Thanks a lot in advance.
Sincerely yours,
David Wang
Logged In: YES
user_id=466678
I cannot really understand what you want to do? Are you
trying to control syn via Active Scripting?
Or you just create custom tools and want they to have output
expression? In syn v2.1 this is not possible - only run
profiles (activated from File > Run) can have one.
In syn v3.0 every custom tool can have output expression,
and you can put it in menu, in toolbar, in popup menu,
wherever you want.
If you can upload here much more detailed, step-by-step
description of what you are trying to do, maybe with some of
your scrips attached, we will be able to help you much more.
Regards,
Danail
Logged In: YES
user_id=813206
David
All you need to do is to define a "profile" once for each file type, and then you can issue a macro
that will run that profile (so you can have a button in the toolbar to run this macro)
The following script will run the first profile saved for that type of document:
function Main(FileName)
{
if (ActiveDocument.Profiles.Count > 0)
ActiveDocument.Profiles(0).Execute;
}
Logged In: NO
Hi, tzvika, I got it. Thanks a lot.
Hello neum,
I don't want to control Syn via ActiveScripting. I just want to integrate
the power of Perl into Syn and use one button associated with a Perl script
to control the compiling/interpretaion of any programming language file. In
fact, I succeed with several text editors.
Thanks anyway.
David Wang