Indentation lines in the Default Syntax Settings

Started by knn, July 31, 2010, 06:52:16 PM

Previous topic - Next topic

knn

Is there a reason why "Options --> Syntax --> Default" has no "Indentation guides" available?

After all I can go to "View --> Editor --> Indentation guides" to turn them on, but they always remain invisible.

alex

Hi knn,

can you please explain in more details what do you mean?

Options->Syntax Settings->Default has Indentation Lines check box. But all display settings are not inheritable, so you need to set them for every syntax you want or with All Syntaxes node.
But to display indentation guides you need not only the indentation guides check box, but also "indent" styles defined for syntax schema (this is inheritable). And they defined only for Default Source syntax schema. So all "source" syntaxes will have it. In Options->Syntax settings->Default Source->Fonts and Colors-> Indention Guides , Indentation Guides Highlighted. Or you can check file defsource_spec.xml.

Maybe I need to disable this flags in syntax settings, if styles are not available.
For which syntax you have tried to enable them?

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

knn

Quote from: alex on August 02, 2010, 12:44:20 AM
But to display indentation guides you need not only the indentation guides check box, but also "indent" styles defined for syntax schema (this is inheritable). And they defined only for Default Source syntax schema. So all "source" syntaxes will have it. In Options->Syntax settings->Default Source->Fonts and Colors-> Indention Guides , Indentation Guides Highlighted.
This is what I am talking about:

There is no "Indentation Guides" in the "Default Syntax", only in the "Default Source Syntax".

AND YET: Although there is no "Indentation Guides" in the "Default Syntax" I can still go to "View" -> "Editor (file specific) -> "Indentation Guides" and check it, even for non Source files. This is the thing that is confusing.


Quote from: alex on August 02, 2010, 12:44:20 AM
For which syntax you have tried to enable them?
I want to see indentation guides for my .txt files without inheriting it from "default source", but from "default"

alex

QuoteThere is no "Indentation Guides" in the "Default Syntax", only in the "Default Source Syntax".
AND YET: Although there is no "Indentation Guides" in the "Default Syntax" I can still go to "View" -> "Editor (file specific) -> "Indentation Guides" and check it, even for non Source files. This is the thing that is confusing.
This will be fixed in 1.49 beta. Already in todo list.

QuoteI want to see indentation guides for my .txt files without inheriting it from "default source", but from "default"
Then just move "indent" styles from default source to Default. Or copy them into txt_spec.xml directly.
Be aware that such changes can be lost after update of the HE (only if corresponding files were changed on HE side = newer, but there is always backup of your setting in syntax folder).
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

knn


alex

Just edit files directly in hippoedit.
You need to change defsource_spec.xml, def_spec.xml and probably txt_spec.xml.

The part responsible for indent guides visualization:
      <Style id="indent" name="Indentation Guides" dstyle="true" clr="Indentation Guides" dbkclr="true" bkclr="Indentation Guides" overview="3"/>
      <Style id="indent_highlight" name="Indentation Guides (Highlighted)" dstyle="true" clr="Indentation Guides (Highlighted)" dbkclr="true" bkclr="Indentation Guides (Highlighted)" overview="3"/>


If you want to have it for all syntaxes: remove mentioned lines from defsource_spec.xml and paste them into def_spec.xml.
Or if you want to have indent guidelines for Plain text paste then in txt_spec.xml
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]