> Some ideas:
> In general, what I can think of is, as a first maybe possible approach:
> 1. Get all the unique words of your (e.g. Gutenberg) file (e.g. save this in file 'yourExample.ext')
> (using e.g. something like a TSE macro or otherwise a combination of pipe and redirect
> split | unique | sort >yourKeywords.txt
> )
> 2. Use this yourKeywords.txt file to generate a
> TSE syntax highlight file (e.g. yoursyntaxhighlight) for a particular extension (e.g. .ext)
> You can maybe e.g. concatenate minimally the string
> [keyWords1]
> in front of your unique keyword file to get at least 1 different color,
> then save the result
> 3. On that file you run that standard TSE macro
> syncfg2.mac
> (it might have to be recompiled/redesigned to accept a .txt filename as a command line parameter)
> 4. you copy the resulting .syn (e.g. yourwords.syn) to the TSE synhi directory
> 5. Then you activate this syntax highlight file (e.g. if extension is .ext then highlight that file)
> But usually you will have to quit and reload tse to activate it, as far as I know.
> So you might have to start TSE using a batch file.
> Something like a file mybatchfile.bat containing at least something like (loading TSE twice thus,
> the first time to activate the new syntax highlight, the second time to show that new highlight.
> g32.exe yourGutenberg.ext -eyourMacro.mac
> g32.exe yourGutenberg.ext
> exit
> ===
> Troubleshooting:
> -You get too many unique words, giving problems for syntax highlighting maximum size files
> So you might have to make some (manual) decisions what to take and what to throw away.
> Just some thoughts,
> with friendly greetings,
> Knud van Eeden
>
> ----- Original Message ----
> From: noman9607 <pgb9...@yahoo.com>
> To: SemWare <semware@googlegroups.com>
> Sent: Wednesday, July 2, 2008 7:25:04 PM
> Subject: [TSE] Re: syntax highlight on the fly?
> Here is a current example. I have the novel "Don Quixote" loaded (from
> project Gutenberg) to study and later write a paper. I use TSE like a
> database because it is so fast. I search using [alt+v]for say 'barber'
> and 'curate' then look at the results and from that I get a list of
> words like:
> Treasury
> various
> poems
> books
> author
> barber
> curate
> Now I want the words in the list above 'syntax hilited' because
> although I could have used TSE to go to the lines where the patterns
> were found the results are too narrow; by looking at these words
> hilited it is easy to tie ideas together paragraphs and pages from the
> narrow focus of the one-line grep search. It takes too long to add
> these 'keywords' to the 'language' in the normal programming sense. I
> can generate a 'overlay' text file by editing or by using basic
> program with the words I want to hilite in it. Using the full options
> menu as I stated above you can overlay the settings using the file you
> just created progrmmatically but now is the key idea: I want to run
> the options setup including the new 'overlay settings from mapping
> text fle...' when I start TSE from the command line. The following is
> 'made-up' command line. I think the solution will have to be a
> automatically loaded macro.
> g32.exe overlay-dq.txt DonQuixote.txt
> It is handy to hilite words if you can do it quickly and easily
> thanks for your help.
> On Jun 30, 4:40 pm, knud van eeden <knud_van_ee...@yahoo.com> wrote:
> > Can you show a very simple example?
> > With friendly greetings
> > Knud van Eeden
> > ----- Original Message ----
> > From: noman9607 <pgb9...@yahoo.com>
> > To: SemWare <semware@googlegroups.com>
> > Sent: Sunday, June 29, 2008 11:02:44 PM
> > Subject: [TSE] syntax highlight on the fly?
> > I would like to highlight words based on grep's etc that I do in my
> > programs. These word sets are not meant to last a long time. I just
> > discovered the 'Overlay settings from mapping text file' in the
> > \Options\configure systaxhitlite mapping sets menu. Can I use this
> > option setting in a macro that will run the overlay file when the file
> > is opened? I don't see a way to do this from the command line (future
> > feature Sam?) but I can generate the overlay file in my own program
> > and save it to a hard coded file name that a tse macro might run if
> > that will work.
> > The syntax files are binary so I do not want to tackle the problem
> > that way.
> > thanks,- Hide quoted text -
> > - Show quoted text -- Hide quoted text -
> - Show quoted text -