mirror of
https://github.com/OrcaSlicer/OrcaSlicer_WIKI.git
synced 2026-05-17 08:35:46 +03:00
Update code block language and improve G-code examples (#67)
Changed code block language from 'gcode' to 'c++' for syntax highlighting and improved formatting in G-code examples. Also refined example conditions and descriptions for clarity.
This commit is contained in:
@@ -100,7 +100,7 @@ This G-code is inserted when the extrusion role is changed.
|
||||
Example G-codes:
|
||||
|
||||
- Marlin g-code to set fan speed to 10% (S25 out of S255) for BridgeInfill role and 30% (S75 out of S255) for other roles:
|
||||
```gcode
|
||||
```c++
|
||||
{if( extrusion_role == "BridgeInfill")}
|
||||
M106 S25
|
||||
{else}
|
||||
@@ -108,9 +108,9 @@ Example G-codes:
|
||||
{endif}
|
||||
```
|
||||
|
||||
- Marlin G-code to set the fan speed to 0% for the ['Internal Sparse Infill' role](strength_settings_infill) and the first three layers, and to 30% (M106 S{0.3*255}) for the other roles. This achieves good layer adhesion while maintaining perimeter quality.:
|
||||
```gcode
|
||||
{if(extrusion_role)=="InternalInfill"||layer_num <4}
|
||||
- Marlin G-code to set the fan speed to 0% for the ['Internal Sparse Infill' role](strength_settings_infill) and the first three layers, and to 30% `0.3*255` for the other roles. This achieves good layer adhesion while maintaining perimeter quality.:
|
||||
```c++
|
||||
{if(extrusion_role)=="InternalInfill" || layer_num < 4 }
|
||||
M106 S0
|
||||
{else}
|
||||
M106 S{0.3*255}
|
||||
@@ -118,7 +118,7 @@ Example G-codes:
|
||||
```
|
||||
|
||||
- Marlin g-code to set pressure advance to 0 for ['Internal Sparse Infill' role](strength_settings_infill) and restore it to previous value for other roles:
|
||||
```gcode
|
||||
```c++
|
||||
{if( extrusion_role == "InternalInfill")}
|
||||
M900 K0
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user