MCPcopy Create free account
hub / github.com/cogentcore/core / CommentRegion

Method CommentRegion

texteditor/buffer.go:910–915  ·  view source on GitHub ↗

CommentRegion inserts comment marker on given lines; end is *exclusive*

(start, end int)

Source from the content-addressed store, hash-verified

908
909// CommentRegion inserts comment marker on given lines; end is *exclusive*
910func (tb *Buffer) CommentRegion(start, end int) {
911 autoSave := tb.batchUpdateStart()
912 defer tb.batchUpdateEnd(autoSave)
913 tb.Lines.CommentRegion(start, end)
914 tb.signalMods()
915}
916
917// JoinParaLines merges sequences of lines with hard returns forming paragraphs,
918// separated by blank lines, into a single line per paragraph,

Callers

nothing calls this directly

Calls 3

batchUpdateStartMethod · 0.95
batchUpdateEndMethod · 0.95
signalModsMethod · 0.95

Tested by

no test coverage detected