line numbers on every line, constraining the cursor to the end of the line, &wb

Started by scunliffe, November 18, 2010, 05:54:32 PM

Previous topic - Next topic

scunliffe

I have 2 quick questions that I couldn't find an answer for:

1.) I want line numbers on every single line 1,2,3,4,5,6,7,8,9,... not just every 5.  I found a post on here about changing a settings.xml file but I don't have such a file to change.

2.) I want the cursor to be constrained to the actual text typed. e.g. if I have "hello('world');" (minus the double quotes) on a line, clicking anywhere to the right of the semi-colon should put the cursor just after the semi-colon... not 17 or 18 virtual spaces past the semi-colon

3.) Word boundaries.  I like it when double-clicking a word selects that word, but I don't like "#" characters being included in words.
e.g. if I have the following in a *.css file:

.foo{
    color:#ffaacc;
}

If I double-click in between the "aa" in the hex color, I want "ffaacc" to be selected, not "#ffaacc".  Is it possible to configure this somewhere?

Cheers,
Steve

alex

Hi Steve,

1) The file is created after first exit from HippoEDIT in the user data directory \ data. You can find a path in Tools->Options->General->"Settings Path". If file not created after exit, than probably you do not have permissions to write to the user data folder (wrong selection during installation). You can check this by changing some setting and rechecking it after restart of HE.

2) Probably you have enabled (by default this is disabled) virtual spaces. This option can be enabled on several "levels": for current document only in menu View->Editor->"Virtual Spaces" or for special syntax menu Tools->Options->Syntax Settings->{Syntax Name}->"Virtual Spaces". The setting can be also set for all syntaxes on Tools->Options->Syntax Settings->All Syntaxes->"Virtual Spaces".
To get behaviour you want you need to disable it.

3) Double click selects word under the cursor. The word boundaries determined by searching for word symbols left and right from cursor position. Word symbols are determined by syntax definition. In your case this is definition of css can be found in {UserDataDirectory}\data\syntax\css_spec.xml.       
<Words>0-9A-Za-z_--#</Words>
If you will remove # it can work as you want. But in this case can be other problems, because schema expects to have # in words and probably some syntax definitions will not work. But you can check. Maybe the behaviour will be acceptable by you.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

scunliffe

Hi Alex,

Thanks for the reply it was all very useful!

1.) the settings.xml file was indeed in my directory, just my windows search was very slow to find it :-( (my mistake)
2.) yup, guilty as charged
3.) I'll give that a go.  It's one of those minor things that just gets to me... like trying to select a word in MS Word and not get the trailing space selected ;-)

Thanks again!