nitc :: MDoc :: cs_comment
# Returns the full comment formatted for the console
fun cs_comment(no_color: nullable Bool, indent: nullable Int): String do
var res = new FlatBuffer
indent = indent or else 0
for line in content do
res.append "{" " * indent}{line}\n"
end
if no_color == null or not no_color then
return res.write_to_string.green
end
return res.write_to_string
end
src/doc/templates/term_model.nit:25,2--36,4