| Top |
| gboolean | code-comment-is-supported | Read |
| GtkSourceView * | source-view | Read / Write / Construct Only |
TeplCodeCommentView extends the GtkSourceView class with the code comment and uncomment feature.
TeplCodeCommentView *
tepl_code_comment_view_new (GtkSourceView *view);
Since: 6.14
GtkSourceView *
tepl_code_comment_view_get_source_view
(TeplCodeCommentView *code_comment_view);
Since: 6.14
gboolean
tepl_code_comment_view_code_comment_is_supported
(TeplCodeCommentView *code_comment_view);
Since: 6.14
void tepl_code_comment_view_comment_lines (TeplCodeCommentView *code_comment_view,const GtkTextIter *start_iter,const GtkTextIter *end_iter);
Comments the lines between start_iter
and end_iter
included.
If end_iter
is NULL, only a single line is commented.
Ensure that code comment is supported before calling this function. See
tepl_code_comment_view_code_comment_is_supported().
code_comment_view |
||
start_iter |
a GtkTextIter. |
|
end_iter |
a GtkTextIter, or |
[nullable] |
Since: 6.14
void
tepl_code_comment_view_comment_selected_lines
(TeplCodeCommentView *code_comment_view);
Comments the selected lines.
Ensure that code comment is supported before calling this function. See
tepl_code_comment_view_code_comment_is_supported().
Since: 6.14
void
tepl_code_comment_view_uncomment_selection
(TeplCodeCommentView *code_comment_view);
Uncomments the selected text.
Ensure that code comment is supported before calling this function. See
tepl_code_comment_view_code_comment_is_supported().
Since: 6.14
“code-comment-is-supported” property“code-comment-is-supported” gboolean
Whether code comment/uncomment is supported.
This property is TRUE when all these conditions are met:
The necessary metadata is available, to know what character or string to insert or remove.
The “editable” property is TRUE.
Owner: TeplCodeCommentView
Flags: Read
Default value: FALSE
Since: 6.14
“source-view” property“source-view” GtkSourceView *
The associated GtkSourceView widget. TeplCodeCommentView has a weak reference to the GtkSourceView.
Owner: TeplCodeCommentView
Flags: Read / Write / Construct Only
Since: 6.14