|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Mon Feb 02, 2009 1:16 am
What do I need to do to get the background to come over with the captured text? |
If I do:
Code: |
<trigger priority="93170" regex="true" id="9317">
<pattern>^(test)</pattern>
<value>#cw gray,firebrick
#cap Channels</value>
</trigger>
|
I see the text in the main window with the red 'firebrick' background, but in the Capture window it has lost it's background color. How do I capture it in the Capture window with the background color intact? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Mon Feb 02, 2009 1:45 am |
What I do is put my color triggers in a module so all my windows can see them, then they just get recolored in the new window.
in your example you could also use:
#WIN Channels {<color gray,firebrick>%line</color>} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Mon Feb 02, 2009 2:02 am |
That would work if I did my coloring and capturing with the same trigger. Unfortunately, I do the coloring with one trigger and it may or may not be captured to the other window depending on the text by the other trigger.
|
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Mon Feb 02, 2009 2:41 am |
But his first suggestion, putting all your colouring triggers in a module that can be seen by all the windows that you want coloured, should work just fine.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Mon Feb 02, 2009 2:48 am |
How would I do that?
|
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Mon Feb 02, 2009 3:40 am |
In the settings editor, use the "New" button to create a new module. Under "packages enabled for this module", check the names of the package(s) containing the windows you want to highlight text in. Then go to those windows and check the package containing containing your new module. Then move your highlighting triggers over to your new module.
Edit: Also remember that if you're using variables which are stored in those windows, they won't be visible outside the window, so best to move that to an accessible module, too. |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Mon Feb 02, 2009 5:21 am |
That seems overly complicated to remedy the background color not being captured. Additionally the coloring requires a large database which is specific to the main module. I'm not sure that ripping that out and putting it in another module would work since the database needs to be maintained by the other package.
Why does the text color come over fine, but not the background color? I don't understand why this is this a problem in the first place?
Would using MXP be a way around this issue with #cw? |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Tue Feb 03, 2009 5:43 pm |
Should I post this in the bug section? It seems like a bug that the foreground color makes it over but the background color doesn't. I can't image it was done that way intentionally.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Feb 03, 2009 9:41 pm |
There is no 'bug' section. Bugs with the public version can be posted here.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Wed Feb 04, 2009 12:41 am |
Sorry, I meant the Beta section.
So do I call this a bug? |
|
|
|
|
|