Skip to content

Commit dd16216

Browse files
Fix code fence
1 parent 19309da commit dd16216

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,11 @@ touch_format "Foo 2021-05-04 22:57:54 Goo"
436436
437437
Get a string's characters that match a class, with optional offset and length.
438438
439-
Syntax: select_character_class <string> <class> [offset [length]]
439+
Syntax:
440+
441+
```sh
442+
select_character_class <string> <class> [offset [length]]
443+
```
440444
441445
Example with character class:
442446
@@ -463,7 +467,11 @@ select_character_class foo123goo456 alpha 3 1
463467
464468
Get a string's characters that don't match a class, with optional offset and length.
465469
466-
Syntax: reject_character_class <string> <class> [offset [length]]
470+
Syntax:
471+
472+
```sh
473+
reject_character_class <string> <class> [offset [length]]
474+
```
467475
468476
Exapmle with character class:
469477

posix-shell-script-kit

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,10 @@ touch_format() {
12211221

12221222
# select_character_class: get a string's characters that match a class, with optional offset and length.
12231223
#
1224-
# Syntax: select_character_class <string> <class> [offset [length]]
1224+
# Syntax:
1225+
# ```
1226+
# select_character_class <string> <class> [offset [length]]
1227+
# ```
12251228
#
12261229
# Example with character class:
12271230
# ```
@@ -1249,7 +1252,10 @@ select_character_class() {
12491252

12501253
# reject_character_class: get a string's characters that don't match a class, with optional offset and length.
12511254
#
1252-
# Syntax: reject_character_class <string> <class> [offset [length]]
1255+
# Syntax:
1256+
# ```
1257+
# reject_character_class <string> <class> [offset [length]]
1258+
# ```
12531259
#
12541260
# Example with character class:
12551261
# ```

0 commit comments

Comments
 (0)