[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nedit-discuss
Subject:    Re: Tabs emulated and otherwise
From:       "Joerg Fischer" <jf505 () gmx ! de>
Date:       2009-01-24 9:24:57
Message-ID: 20090124092457.273880 () gmx ! net
[Download RAW message or body]

Erik de Castro Lopo wrote:

> I was wondering is there a way in Nedit 5.5, to force some langauges
> modes to use tabs for indentation and others to use spaces? I've
> had a look at both the Tabs dialog and the Language Modes dialog
> and it seems that the "Emulate Tabs" and "Use tab characters in padding
> and emulated tabs" settings are global.

No, they are per window settings. You can have tabs in one window, and 
emulated tabs in another window at the same time. By using the smart 
indent initialisation hook, and the action routine set_em_tab_dist(n).
With n = 0, emulated tabs is turned off, with n > 0 it is turned on.
There are also actions to control the other tab settings.

The smart indent hook is under Preferences>Default Settings>Auto Indent>
Program Smart indent.

--Jörg 
-- 
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
-- 
NEdit Discuss mailing list - Discuss@nedit.org
http://www.nedit.org/mailman/listinfo/discuss
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic