On Wed, 18 Feb 2009 12:03:38 +1100
Erik de Castro Lopo <[email protected]> wrote:

> Hi all,
> 
> What are the fields of nedit.languageModes and what are the valid
> values?
> 
> For Haskell I currently have:
> 
>     Haskell:.hs::Auto::4:4::\n\
> 
> but I would also like to turn off the "use tab characters in padding
> and emulated tabs" setting (for Haskell only).
> 
> Cheers,
> Erik
> -- 
Hi,

As Tony mentioned, you can use macro to set/unset tab character usage,
see around set_use_tabs()and set_em_tab_dist() macros.

Via Program Smart Indent menu you also can tune "tab behavior" as you prefer
for any Language Mode except Plain. If you put above mentioned macros
to the field "Language Specific Initialization Macro Commands and Definitions"
for the Haskell mode, they will be executed for any file associated with
this mode. To get this settings permanently, you must use "Smart Indent"
for the Haskell mode.

Cheers,
Alexey
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to