[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - How to make *balanced* indent

How to make *balanced* indent

Q&A's, tips, howto's

How to make *balanced* indent

Postby ssqq » Mon Jan 05, 2015 9:32 am

I used Vim to write newLISP code, How to set following indent:

(define (sub-name args)
(built-in-sub args)
)

(if (= expr nil)
(dosth)
)

if last parenthesis is first char of line, have same indent with his corresponding start parenthesis. Just like *{ ... }* in C-like indent.
ssqq
 
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

Re: How to make *balanced* indent

Postby ssqq » Mon Jan 05, 2015 5:23 pm

ssqq
 
Posts: 88
Joined: Sun May 04, 2014 12:49 pm


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest