From 7e647657b0f95a4756b8aa714b0b3e4295272b81 Mon Sep 17 00:00:00 2001
From: mitchell Whether or not to fold multiple, consecutive line comments and only show
- the top-level comment.
+ Whether or not to fold multiple, consecutive line groups (such as line
+ comments or import statements) and only show the top line.
This option is disabled by default.
- This is an alias for
+ lexer.fold_line_comments (boolean)
- lexer.fold_line_groups (boolean)lexer.property['fold.line.comments'] = '1|0'.lexer.property['fold.line.groups'] = '1|0'.
lexer.fold_line_comments (prefix)lexer.fold_consecutive_lines (prefix)Returns a fold function (to be passed to lexer.add_fold_point()) that folds
- consecutive line comments that start with string prefix.
Returns for lexer.add_fold_point() the parameters needed to fold
+ consecutive lines that start with string prefix.
Parameters:
prefix: The prefix string defining a line comment.prefix: The prefix string (e.g. a line comment).Usage:
lex:add_fold_point(lexer.COMMENT, '--',
- lexer.fold_line_comments('--'))lex:add_fold_point(lexer.COMMENT, '//',
- lexer.fold_line_comments('//'))lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('--'))lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('//'))lex:add_fold_point(lexer.KEYWORD, lexer.fold_consecutive_lines('import'))scintilla_get_clipboard() now returns a
+ copy of clipboard text directly.
+ bool, true, and false.