SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: erezzi on July 27, 2008, 02:54:43 pm

Title: indentation problems with vslick 13.0.1
Post by: erezzi on July 27, 2008, 02:54:43 pm
I'm trying to work according to Linux kernel standards: indent with tabs & tab length is 8 chars.

Under Tools->Options, I did the following:

Languages->Application Languages->C/C++->Indent:

Languages->Application Languages->C/C++->Adaptive formatting - unchecked

After doing that, if I look at my code, I see that the 1st tab is 5 chars, the 2nd is 4 chars and the 3rd is 6 chars. This behavior started after I moved from v13.0.0 to v13.0.1. Any ideas?

Thanks,
Erez
Title: Re: indentation problems with vslick 13.0.1
Post by: erezzi on July 29, 2008, 08:03:24 am
anyone?
Title: Re: indentation problems with vslick 13.0.1
Post by: hs2 on July 29, 2008, 08:24:33 am
Did you also check/set 'Document>Tabs: 1 9' ? But it should be set according to your language setup...
Be aware that there is also an 'ANSI-C' language mode which could be setup differently.
You can verify and configure the language/document mode in use directly using the 'Document' menu.
Good luck,
HS2
Title: Re: indentation problems with vslick 13.0.1
Post by: erezzi on July 29, 2008, 09:43:17 am
Yes, it is 'Document>Tabs: 1 9'. The same settings exist also for ANSI-C. I think that now I understand more about this problem - it does use 8 chars for tab, but something is bad with the fonts. For example: the word "close" is only 5 chars, but it's as long as 8 spaces. I guess that I need to change something in the font settings. Any idea?

Thanks,
Erez
Title: Re: indentation problems with vslick 13.0.1
Post by: erezzi on July 29, 2008, 09:52:32 am
found it - I switched to "DejaVu Sans Mono" font, and now it looks great.

Erez
Title: Re: indentation problems with vslick 13.0.1
Post by: hs2 on July 29, 2008, 10:18:12 am
You'll find some more good font alternatives here (http://community.slickedit.com/index.php?topic=3511.0).
HS2