MCPcopy Index your code
hub / github.com/aws/aws-cli / codeblock

Method codeblock

awscli/bcdoc/style.py:323–332  ·  view source on GitHub ↗

Literal code blocks are introduced by ending a paragraph with the special marker ::. The literal block must be indented (and, like all paragraphs, separated from the surrounding ones by blank lines).

(self, code)

Source from the content-addressed store, hash-verified

321 self.new_paragraph()
322
323 def codeblock(self, code):
324 """
325 Literal code blocks are introduced by ending a paragraph with
326 the special marker ::. The literal block must be indented
327 (and, like all paragraphs, separated from the surrounding
328 ones by blank lines).
329 """
330 self.start_codeblock()
331 self.doc.writeln(code)
332 self.end_codeblock()
333
334 def toctree(self):
335 if self.doc.target == 'html':

Callers 3

test_codeblockMethod · 0.95
test_codeblockMethod · 0.95
doc_synopsis_startMethod · 0.45

Calls 3

start_codeblockMethod · 0.95
end_codeblockMethod · 0.95
writelnMethod · 0.45

Tested by 2

test_codeblockMethod · 0.76
test_codeblockMethod · 0.76