Author Topic: Highlight portions of current line only  (Read 4932 times)

Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
Highlight portions of current line only
« on: September 02, 2010, 01:43:25 PM »
Hi,

Maybe I'm just going crazy, but I don't seem to be able to
highlight portions of plain text on a single line.

If I select and drag up, or down a line the text highlights OK, but that
screws up precise cutting of the text.

Please tell me I'm missing something silly.

Regards,
Stuart

Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
Re: Highlight portions of current line only
« Reply #1 on: September 02, 2010, 03:57:13 PM »
Just checked on my laptop and HippoEdit is highlighting properly on there.
My syntax/colouring/options are identical on that installation.
Weird. Will try re-installing.
-Stuart

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2222
  • Karma: +37/-3
    • HippoEDIT
Re: Highlight portions of current line only
« Reply #2 on: September 02, 2010, 04:11:20 PM »
Hi Stuart,

I was not able to understand what you tried to explain :)
Can you describe in step by step instruction what should be done, and what does not work (or work not as expected).
Maybe screenshot or screen cam?

I was able to edit/select part of the line without any problem.

Best regards,
Alex.
P.S: read your second post. Try reinstall, maybe you have changed something in selection style or what ever. Or some settings.

Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
Re: Highlight portions of current line only
« Reply #3 on: September 02, 2010, 05:50:33 PM »
Thanks Alex,

The re-install fixed the problem.

The issue was when I was trying to select portions of a line of text, the
highlighting would not be visible until my selection crossed a line above or
below the current line.

Thanks for the speedy response in any case.

-Stuart

Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
Re: Highlight portions of current line only
« Reply #4 on: August 15, 2011, 12:08:56 PM »
Hi,
This is now happening again. I haven't changed anything that I am aware of in my settings.

In the screen shot all I am doing is opening a new plain text then typing 'hello world' then selecting the word hello. No highlighting appears until I add text on line two then select down to there, at which time the highlighting seems to work fine. I use yellow text on a red background for highlighting.

This is the same with multi-line text. Highlighting works great for all lines except the current line.

I have a feeling that the text IS being selected and highlighted - just not with the options I think should be used for highlighting. Can someone please explain to me what the difference is between highlighting the current line and other lines. Preferably by referring to the exact settings needed in the options?

Thanks,
Stuart
[attachimg=1]

Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
Re: Highlight portions of current line only
« Reply #5 on: August 15, 2011, 11:52:56 PM »
Current line highlighting under options was the culprit. I deselected and all was well again.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: Highlight portions of current line only
« Reply #6 on: August 16, 2011, 12:19:39 AM »
Oh man! Good find! ;D

Thanks for the feedback.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2222
  • Karma: +37/-3
    • HippoEDIT
Re: Highlight portions of current line only
« Reply #7 on: August 22, 2011, 09:52:37 PM »
Hi Stuart,

the trick is, I think, that your current line color is not transparent enough (alpha setting should be more than 0%). And because current line style layered on top of selection style (by design) it hides it. If current line background color is transparent (as it is by default) it should work. I have checked with default color schemes and described ad it works. So the problem, probably in your settings. If you like you can send me your data folder (about box for path) and I will check what is a reason.

BR, Alex.


Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
Re: Highlight portions of current line only
« Reply #8 on: August 23, 2011, 12:42:44 PM »
Alex,

Thanks for that. You are actually exactly correct in your diagnosis.

When I set the transparency level for the current line (which is actually black) to between 20..90% I can then re-enable current line highlighting in the options and text selection works perfectly. So the Window Background, due to no transparency/alpha was 'consuming' the selection highlighting. In a sense.

It would be really cool, for a dope like me, to get a pop up a warning if I tried to make option changes that conflicted like that.

As it happens I have HippoEdit set up to look absolutely spectacular for editing Powershell, Perl, Python and VBScript and could not be happier with the program! But please don't let that put you off implementing themes and icon personalisation.... ;-)

Thanks again,

Stuart

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2222
  • Karma: +37/-3
    • HippoEDIT
Re: Highlight portions of current line only
« Reply #9 on: August 23, 2011, 03:29:47 PM »
Hi Stuart,

good that you are now aware ;) Such situation like you have is rather difficult to determine in configuration editing, because HE does not know what will be a resulting layer sequence of styles, so it can not predict that something will be invisible. It can be also by design that you want to not see other styles through current line style. And also transparency is maintained for COLOR, and you can select the "current line" color to any other style, not only "current line" style. So such determination will be very complex and also not 100% correct.

But for text color you will never get such problems, because there it is checked with contrast ration, that with any combination of text color and background text will be readable.

With theming and icon customization -  I think this will come not earlier than 1.60, when I plan to switch GUI lib to new MFC. Same time, I think, will come also internationalization support.

BR, Alex