Author Topic: Mode dependent tab settings  (Read 414 times)

Offline jeremy_c

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Mode dependent tab settings
« on: July 29, 2009, 02:32:34 pm »
Most modes I use tab indentation is the prefered way of doing things, but with Lisaac, the prefered way is 2 spaces for an indent. I realize I can change the ident size per language, however, it does not seem that I can change if it is indented by spaces or tabs.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Mode dependent tab settings
« Reply #1 on: July 29, 2009, 03:05:09 pm »
Hello Jeremy,

welcome. Please check your mailbox, I have answered your question about highlighting of [A-Z][0-9]+.

About Spaces to Tabs this option is not syntax dependent but global. Can be found here:
Tools->Options->Formatting - Tabs and Spaces - Replace Tabs by spaces.

Best regards,
Alex.

Offline jeremy_c

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Mode dependent tab settings
« Reply #2 on: July 29, 2009, 05:00:07 pm »
I wonder if this can be a feature request. I believe it's worth while.

It might even be nice to have this on a per project setting. For instance, one open source project I contribute to requires space indents of 4 characters, while another is tab only.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Mode dependent tab settings
« Reply #3 on: July 29, 2009, 05:24:54 pm »
I would think about this, but from another point you can use Auto settings.

If you have Auto for  Tabs to Spaces it would try to found from existing content of the document if tabs are used or not. If tabs are not found then spaces should be inserted on indent. Conversion also done during saving (for example for text was pasted). But there is no check for project settings. Maybe this can be added.

The same is for indent size (not Tab size). If you have auto-detect default indent editor would try to find from statistics which indent most used and would insert it on your edits.

Current indent you see in the status bar. There you can also set specific indent for this document. But also project settings are not checked (there are no settings for indent, tabs to spaces there yet).
But you can set default indent size for specific syntax with XML files:
    <FORMAT>
      <DefaultIndent>4</DefaultIndent>
    </FORMAT>

as example in euphoria_spec.xml.

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
577 Views
Last post May 24, 2009, 05:54:43 am
by Scott Bilas
2 Replies
301 Views
Last post August 11, 2010, 03:46:24 pm
by alex
3 Replies
521 Views
Last post August 11, 2010, 01:33:42 pm
by alex
7 Replies
739 Views
Last post May 04, 2011, 07:18:46 pm
by Stefan
2 Replies
222 Views
Last post June 25, 2011, 12:02:56 am
by RickF