Re: [tf-dis] Complex highlighting in tf
Brought to you by:
kenkeys
|
From: lost a. <fil...@gm...> - 2016-04-27 23:28:22
|
Huh, weird. Wonder if I have a different version installed. For me, %% tells it to move on to the next line of the nested macro. If I use a single %, it tells it to move on to the next line of the outer macro. Glad you got it working though. On Wed, Apr 27, 2016 at 5:13 PM, Colin Mackay <zix...@gm...> wrote: > Apparently it's just %;\ for multi-line... The extra % was throwing it. > > The highlights are working now. Now to come up with a good color scheme. > > > Thank you all for your help. :) > > On Wed, Apr 27, 2016 at 4:41 PM, lost addams <fil...@gm...> > wrote: > >> Yeah, I think Karol meant to do %%;\ which would have been right for a >> multiline macro within a macro. >> >> On Wed, Apr 27, 2016 at 4:13 PM, Colin Mackay <zix...@gm...> wrote: >> >>> I did try %% and a semi-colon... I compiled this version with defaults, >>> aside from the timestamp logging patch that I added. >>> >>> On Wed, Apr 27, 2016 at 3:39 PM, Jacob Finn <sup...@gm...> >>> wrote: >>> >>>> > I did try the one you responded with Karol, but I couldn't seem to >>>> get it to work... >>>> >>>> I believe Karol intended "%%" to be the command separator "%;" (Is this >>>> configurable? Possibly at compile-time....) >>>> >>>> On Wed, Apr 27, 2016 at 12:20 PM, Colin Mackay <zix...@gm...> >>>> wrote: >>>> >>>>> Gmail apparently stopped sending messages to the list, so I'll post >>>>> them all here: >>>>> >>>>> So this one worked for me (from lost addams): >>>>> >>>>> /def -t'-Location--.*' trig_whereare = \ >>>>> /def -p9 -P1BCblue -F -t'^(\\w.*?)\\s+\\d' highlight_whereare. >>>>> >>>>> Thanks. :) >>>>> >>>>> >>>>> I did try the one you responded with Karol, but I couldn't seem to get >>>>> it to work... >>>>> >>>>> % DEF: illegal macro name "_whereare_room % /def -p9 -PLBCgreen -F >>>>> -mregexp -t'". >>>>> >>>>> Seems it's thinking the next line is part of the name from the >>>>> previous line? >>>>> >>>>> >>>>> On Wed, Apr 27, 2016 at 3:17 PM, Colin Mackay <zix...@gm...> >>>>> wrote: >>>>> >>>>>> Ah. Didn't see the error before with the one you gave me Karol: >>>>>> >>>>>> % DEF: illegal macro name "_whereare_room % /def -p9 -PLBCgreen -F >>>>>> -mregexp -t'". >>>>>> >>>>>> Seems that it's thinking the next line is part of the name from the >>>>>> previous... >>>>>> >>>>>> On Wed, Apr 27, 2016 at 3:00 PM, Colin Mackay <zix...@gm...> >>>>>> wrote: >>>>>> >>>>>>> So this one worked for me (from lost addams): >>>>>>> >>>>>>> /def -t'-Location--.*' trig_whereare = \ >>>>>>> /def -p9 -P1BCblue -F -t'^(\\w.*?)\\s+\\d' highlight_whereare. >>>>>>> >>>>>>> Thanks. :) >>>>>>> >>>>>>> I did try the one you responded with Karol, but I couldn't seem to >>>>>>> get it to work... >>>>>>> >>>>>>> On Tue, Apr 26, 2016 at 8:43 AM, Karol Lassak <in...@in...> >>>>>>> wrote: >>>>>>> >>>>>>>> I would do it like that: >>>>>>>> >>>>>>>> /def -t'^-Location--.*' trig_whereare = \ >>>>>>>> /def -p9 -P1BCblue -F *-mregexp* -t'^(\w.*?)\s+\d' >>>>>>>> _whereare_room %%\ >>>>>>>> /def -p9 -PLBCgreen -F *-mregexp* -t'= Directions: ' >>>>>>>> _whereare_dir %%\ >>>>>>>> /def -1 '------------------------------ >>>>>>>> -----------------------------------------------' _whereare_purge = >>>>>>>> /purge _whereare_* >>>>>>>> >>>>>>>> Every time when location blocks starts it would create triggers and >>>>>>>> at end will clean them all. >>>>>>>> >>>>>>>> >>>>>>>> 2016-04-26 4:24 GMT+02:00 Colin Mackay <zix...@gm...>: >>>>>>>> >>>>>>>>> Thanks for the hint, but I don't think I quite have it yet. >>>>>>>>> >>>>>>>>> So if I use this trigger, adding a command for the MUCK, it works: >>>>>>>>> >>>>>>>>> /def -t'^-Location--.*' trig_whereare = \ >>>>>>>>> :waves. >>>>>>>>> >>>>>>>>> This makes my character pose a wave. But adding a highlight, >>>>>>>>> which works on it's own, does not: >>>>>>>>> >>>>>>>>> /def -t'^-Location--.*' trig_whereare = \ >>>>>>>>> /def -p9 -P1BCblue -F -t'^(\w.*?)\s+\d' highlight_whereare >>>>>>>>> >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Fri, Apr 22, 2016 at 3:46 PM, Jacob Finn < >>>>>>>>> sup...@gm...> wrote: >>>>>>>>> >>>>>>>>>> Within that block, it looks like any line that starts with a word >>>>>>>>>> character is a room name up until some whitespace is followed by a digit. >>>>>>>>>> This regexp would capture the room name from that: '^(\w.*?)\s+\d'. >>>>>>>>>> >>>>>>>>>> Lines outside that block might match but not be room names. You >>>>>>>>>> can create triggers on the opening and closing lines of the block (e.g. >>>>>>>>>> '^-Location--', '^\d+ rooms listed') to create and remove (or enable and >>>>>>>>>> disable) the room-name highlighting. >>>>>>>>>> >>>>>>>>>> On Fri, Apr 22, 2016 at 12:07 PM, Colin Mackay < >>>>>>>>>> zix...@gm...> wrote: >>>>>>>>>> >>>>>>>>>>> I'm still a bit of a noob to tf. Most of my experience has been >>>>>>>>>>> with logging and simple highlights, but I am wondering if it's possible to >>>>>>>>>>> highlight text that may change. For the example below, there are room >>>>>>>>>>> names, who is Present and Directions. The 'Present' and 'Directions' lines >>>>>>>>>>> are simple, but not always present. >>>>>>>>>>> >>>>>>>>>>> Anyone have an idea how I could highlight the room names, which >>>>>>>>>>> do not have a standard format? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> WhereAre 1.3b -- 59 Characters awake -- 1 to show a room >>>>>>>>>>> >>>>>>>>>>> -Location--------------Characters-Comments----------------------------------- >>>>>>>>>>> MakerSpots : Bay VI 1 Piper's bay in MakerSpots! >>>>>>>>>>> - Present: India(Z) >>>>>>>>>>> = Directions: luge s1 w1, ms, vi >>>>>>>>>>> Alexondra's (N3 E1, a) 1 Alexondra's restaurant & >>>>>>>>>>> night club! >>>>>>>>>>> - Present: Beau Buck(Z) >>>>>>>>>>> The Rose Garden 7 The Rose Garden, center of the >>>>>>>>>>> world! >>>>>>>>>>> - Present: Kamare Sondra Vahno(Z) Dragoncat Jukka Aldrinor >>>>>>>>>>> = Directions: rose >>>>>>>>>>> The Cartoon Jungle (N6 E0) 1 It's a jungle out here! >>>>>>>>>>> - Present: Casandro >>>>>>>>>>> = Directions: luge n6 e0 >>>>>>>>>>> >>>>>>>>>>> ----------------------------------------------------------------------------- >>>>>>>>>>> 4 rooms listed. >>>>>>>>>>> >>>>>>>>>>> Just FYI... The room names above are: >>>>>>>>>>> MakerSpots : Bay VI >>>>>>>>>>> Alexondra's (N3 E1, a) >>>>>>>>>>> The Rose Garden >>>>>>>>>>> The Cartoon Jungle (N6 E0) >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>>> Find and fix application performance issues faster with >>>>>>>>>>> Applications Manager >>>>>>>>>>> Applications Manager provides deep performance insights into >>>>>>>>>>> multiple tiers of >>>>>>>>>>> your business applications. It resolves application problems >>>>>>>>>>> quickly and >>>>>>>>>>> reduces your MTTR. Get your free trial! >>>>>>>>>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> TinyFugue-discuss mailing list >>>>>>>>>>> Tin...@li... >>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>> Find and fix application performance issues faster with >>>>>>>>>> Applications Manager >>>>>>>>>> Applications Manager provides deep performance insights into >>>>>>>>>> multiple tiers of >>>>>>>>>> your business applications. It resolves application problems >>>>>>>>>> quickly and >>>>>>>>>> reduces your MTTR. Get your free trial! >>>>>>>>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>>>>>>>>> _______________________________________________ >>>>>>>>>> TinyFugue-discuss mailing list >>>>>>>>>> Tin...@li... >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>> Find and fix application performance issues faster with >>>>>>>>> Applications Manager >>>>>>>>> Applications Manager provides deep performance insights into >>>>>>>>> multiple tiers of >>>>>>>>> your business applications. It resolves application problems >>>>>>>>> quickly and >>>>>>>>> reduces your MTTR. Get your free trial! >>>>>>>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>>>>>>>> _______________________________________________ >>>>>>>>> TinyFugue-discuss mailing list >>>>>>>>> Tin...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Find and fix application performance issues faster with Applications >>>>> Manager >>>>> Applications Manager provides deep performance insights into multiple >>>>> tiers of >>>>> your business applications. It resolves application problems quickly >>>>> and >>>>> reduces your MTTR. Get your free trial! >>>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>>>> _______________________________________________ >>>>> TinyFugue-discuss mailing list >>>>> Tin...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Find and fix application performance issues faster with Applications >>>> Manager >>>> Applications Manager provides deep performance insights into multiple >>>> tiers of >>>> your business applications. It resolves application problems quickly and >>>> reduces your MTTR. Get your free trial! >>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>>> _______________________________________________ >>>> TinyFugue-discuss mailing list >>>> Tin...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Find and fix application performance issues faster with Applications >>> Manager >>> Applications Manager provides deep performance insights into multiple >>> tiers of >>> your business applications. It resolves application problems quickly and >>> reduces your MTTR. Get your free trial! >>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>> _______________________________________________ >>> TinyFugue-discuss mailing list >>> Tin...@li... >>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >>> >>> >> >> >> -- >> Film the dead; see how they lie. >> >> >> ------------------------------------------------------------------------------ >> Find and fix application performance issues faster with Applications >> Manager >> Applications Manager provides deep performance insights into multiple >> tiers of >> your business applications. It resolves application problems quickly and >> reduces your MTTR. Get your free trial! >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >> _______________________________________________ >> TinyFugue-discuss mailing list >> Tin...@li... >> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss >> >> > -- Film the dead; see how they lie. |