Formating the Comments section

AnHardt 2015-09-24 23:07:50 +02:00
parent 4f7885fd8c
commit 8aad58580b

@ -160,22 +160,22 @@ extrude-only move will be classified as retract depending on the direction
[[M110]] - Set the current Line Number
##G-Code Comments
Comments start at a <code>;</code> (semicolon) and end with the end of the line:
Comments start at a `;` (semicolon) and end with the end of the line:
N3 T0*57 ; This is a comment
N4 G92 E0*67
; So is this
N5 G28*22
N3 T0*57 ; This is a comment
N4 G92 E0*67
; So is this
N5 G28*22
(example taken from the [RepRap wiki](http://reprap.org/wiki/Gcode#Comments))
If you need to use a literal <code>;</code> somewhere (for example within <code>M117</code>), you can escape semicolons with a <code>\</code>
If you need to use a literal `;` somewhere (for example within `M117`), you can escape semicolons with a `\`
(backslash):
M117 Hello \;)
M117 Hello \;)
The backslash <code>\</code> can also be used to escape <code>\</code> itself if you need a literal <code>\</code> in front of a <code>;</code>:
The backslash `\` can also be used to escape `\` itself if you need a literal `\` in front of a `;`
M117 backslash: \\;and a comment
M117 backslash: \\;and a comment
Please note that hosts should strip any comments before sending GCODE to the printer in order to save bandwidth.