You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Covers all pseudocode.js native options (unified project-wide style)
40
40
pseudocode2_options = {
41
41
"lineNumber": True, # Global default: enable line numbering
42
-
"lineNumberPunc": " | ", # Punctuation after line numbers (e.g., "1 | ")
43
-
"commentDelimiter": "//",# Global default comment delimiter
42
+
"lineNumberPunc": " | ", # Punctuation after line numbers (e.g., "1 | ")
43
+
"commentDelimiter": "#", # Global default comment delimiter
44
44
"noEnd": False, # Global default: show "END" for control blocks
45
45
"titlePrefix": "PseudoCode", # Global default title prefix (replace "Algorithm")
46
-
"captionCount": True# Global default: enable auto-increment numbering
46
+
"scopeLines": True,# Global default: enable scope line highlighting
47
47
}
48
48
```
49
49
@@ -84,18 +84,7 @@ Pseudocode rendering is extended with practical options (all compatible with pse
84
84
85
85
### Global Configuration via ``pseudocode2_options``
86
86
87
-
Pseudocode rendering styles can be unified across the entire project using a single global configuration (supports all pseudocode.js native parameters, see [pseudocode.js](https://github.com/SaswatPadhi/pseudocode.js)). The following example shows how to set global options in `conf.py`:
88
-
89
-
```python
90
-
pseudocode2_options = {
91
-
"lineNumber": True, # Global default: enable line numbering
92
-
"lineNumberPunc": " | ", # Punctuation after line numbers (e.g., "1 | ")
93
-
"commentDelimiter": "#", # Global default comment delimiter
94
-
"noEnd": False, # Global default: show "END" for control blocks
95
-
"titlePrefix": "PseudoCode", # Global default title prefix (replace "Algorithm")
96
-
"scopeLines": True, # Global default: enable scope line highlighting
97
-
}
98
-
```
87
+
Pseudocode rendering styles can be unified across the entire project using a single global configuration (supports all pseudocode.js native parameters, see [pseudocode.js](https://github.com/SaswatPadhi/pseudocode.js)). See also the example in the [Quick Start section](#quick-start).
99
88
100
89
**Priority Rule**:
101
90
Configuration priority (higher priority overrides lower): Directive option (e.g., :linenos: in .rst) > pseudocode2_options (global in conf.py) > pseudocode.js default
0 commit comments