Skip to content

Commit ec2f075

Browse files
authored
add cobol example; reorder nav (#186)
1 parent e327770 commit ec2f075

File tree

8 files changed

+76
-2
lines changed

8 files changed

+76
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Cobol
2+
3+
## Block Highlighting
4+
5+
Language highlighting can be enabled with PyMdown and Pygments by adding a [supported programming language](https://pygments.org/languages/) name directly after the first <code>```</code> grouping in a Markdown code block:
6+
7+
```cobol
8+
--8<--
9+
sample-languages/scripts/example.cbl
10+
--8<--
11+
```
12+
13+
### Block Markdown
14+
15+
````text
16+
```cobol
17+
--8<--
18+
sample-languages/scripts/example.cbl
19+
--8<--
20+
```
21+
````
22+
23+
Script adapted from Yvan Scher's ["7 cobol examples with explanations"](https://medium.com/@yvanscher/7-cobol-examples-with-explanations-ae1784b4d576)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--8<--
2+
sample-languages/cobol-base.md
3+
--8<--
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*> setup the identification division
2+
IDENTIFICATION DIVISION.
3+
*> setup the program id
4+
PROGRAM-ID. HELLO.
5+
*> setup the procedure division
6+
PROCEDURE DIVISION.
7+
*> print a string
8+
DISPLAY 'HELLO WORLD'.
9+
*> end our program
10+
STOP RUN.

tests/examples/pymdown-pygments-dark/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ nav:
99
- Configuration: 'index.md'
1010
- Languages:
1111
- Bash: 'sample-languages/bash.md'
12-
- Python: 'sample-languages/python.md'
12+
- Cobol: 'sample-languages/cobol.md'
1313
- Javascript: 'sample-languages/javascript.md'
14+
- Python: 'sample-languages/python.md'
1415

1516
markdown_extensions:
1617
- toc:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Cobol
2+
3+
## Block Highlighting
4+
5+
Language highlighting can be enabled with PyMdown and Pygments by adding a [supported programming language](https://pygments.org/languages/) name directly after the first <code>```</code> grouping in a Markdown code block:
6+
7+
```cobol
8+
--8<--
9+
sample-languages/scripts/example.cbl
10+
--8<--
11+
```
12+
13+
### Block Markdown
14+
15+
````text
16+
```cobol
17+
--8<--
18+
sample-languages/scripts/example.cbl
19+
--8<--
20+
```
21+
````
22+
23+
Script adapted from Yvan Scher's ["7 cobol examples with explanations"](https://medium.com/@yvanscher/7-cobol-examples-with-explanations-ae1784b4d576)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--8<--
2+
sample-languages/cobol-base.md
3+
--8<--
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*> setup the identification division
2+
IDENTIFICATION DIVISION.
3+
*> setup the program id
4+
PROGRAM-ID. HELLO.
5+
*> setup the procedure division
6+
PROCEDURE DIVISION.
7+
*> print a string
8+
DISPLAY 'HELLO WORLD'.
9+
*> end our program
10+
STOP RUN.

tests/examples/pymdown-pygments/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ nav:
99
- Configuration: 'index.md'
1010
- Languages:
1111
- Bash: 'sample-languages/bash.md'
12-
- Python: 'sample-languages/python.md'
12+
- Cobol: 'sample-languages/cobol.md'
1313
- Javascript: 'sample-languages/javascript.md'
14+
- Python: 'sample-languages/python.md'
1415

1516
markdown_extensions:
1617
- toc:

0 commit comments

Comments
 (0)