Skip to content

Commit b605b5b

Browse files
committed
;doc:manuals: fix some code block language types
1 parent ee0c36d commit b605b5b

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

hledger-ui/hledger-ui.m4.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,11 @@ This is very useful when reconciling. A good workflow is to have
341341
your bank's online register open in a browser window, for reference;
342342
the journal file open in an editor window;
343343
and hledger-ui in watch mode in a terminal window, eg:
344+
344345
```cli
345346
$ hledger-ui --watch --register checking -C
346347
```
348+
347349
As you mark things cleared in the editor,
348350
you can see the effect immediately without having to context switch.
349351
This leaves more mental bandwidth for your accounting.

hledger/Hledger/Cli/Commands/Add.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Features:
3333
- If you make a mistake, enter `<` at any prompt to go one step backward.
3434
- Input prompts are displayed in a different colour when the terminal supports it.
3535

36-
Example (see https://hledger.org/add.html for a detailed tutorial):
36+
Example (see <https://hledger.org/add.html> for a detailed tutorial):
3737

38-
``` shell
38+
```cli
3939
$ hledger add
4040
Adding transactions to journal file /src/hledger/examples/sample.journal
4141
Any command line arguments will be used as defaults.

hledger/Hledger/Cli/Commands/Roi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ contributions and which is due to the return on investment.
7272
assets, or otherwise converting between your investment commodity and
7373
any other commodity. Example:
7474

75-
```
75+
```journal
7676
2019-01-01 Investing in Snake Oil
7777
assets:cash -$100
7878
investment:snake oil
@@ -84,7 +84,7 @@ any other commodity. Example:
8484

8585
- "Profit and loss" is change in the value of your investment:
8686

87-
```
87+
```journal
8888
2019-06-01 Snake Oil falls in value
8989
investment:snake oil = $57
9090
equity:unrealized profit or loss
@@ -98,7 +98,7 @@ investment return.
9898
Example: if you use `--inv snake --pnl equity:unrealized`, then
9999
postings in the example below would be classifed as:
100100
101-
```
101+
```journal
102102
2019-01-01 Snake Oil #1
103103
assets:cash -$100 ; cash flow posting
104104
investment:snake oil ; investment posting

hledger/hledger.m4.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ are some good choices (see <https://hledger.org/editors.html>).
6767

6868
To get started, run `hledger add` and follow the prompts,
6969
or save some entries like the above in `$HOME/.hledger.journal`,
70-
then try commands like:\
71-
`hledger print -x`\
72-
`hledger aregister assets`\
73-
`hledger balance`\
74-
`hledger balancesheet`\
75-
`hledger incomestatement`.\
70+
then try commands like:
71+
```cli
72+
$ hledger print -x
73+
$ hledger aregister assets
74+
$ hledger balance
75+
$ hledger balancesheet
76+
$ hledger incomestatement
77+
```
7678
Run `hledger` to list the commands.
7779
See also the "Starting a journal file" and "Setting opening balances" sections
7880
in [PART 5: COMMON TASKS](#part-5-common-tasks).
@@ -1884,7 +1886,7 @@ Here are some tips for working with account types.
18841886
5. Otherwise, it will have no type.
18851887

18861888
- For troubleshooting, you can list accounts and their types with:
1887-
```
1889+
```cli
18881890
$ hledger accounts --types [ACCTPAT] [-DEPTH] [type:TYPECODES]
18891891
```
18901892

@@ -3177,22 +3179,22 @@ Note the two kinds of field names mentioned here, and used only in hledger CSV r
31773179
you can optionally name the CSV columns for easy reference
31783180
(since hledger doesn't yet automatically recognise column headings in a CSV file),
31793181
by writing arbitrary names in a `fields` list, eg:
3180-
```csv
3182+
```rules
31813183
fields When, What, Some_Id, Net, Total, Foo, Bar
31823184
```
31833185

31843186
2. Special **hledger field names** (`HLEDGERFIELD` in these docs):
31853187
you must set at least some of these to generate the hledger transaction from a CSV record,
31863188
by writing them as the left hand side of a [field assignment](#field-assignment), eg:
3187-
```csv
3189+
```rules
31883190
date %When
31893191
code %Some_Id
31903192
description %What
31913193
comment %Foo %Bar
31923194
amount1 $ %Total
31933195
```
31943196
or directly in a [`fields` list](#fields-list):
3195-
```csv
3197+
```rules
31963198
fields date, description, code, , amount1, Foo, Bar
31973199
currency $
31983200
comment %Foo %Bar
@@ -4207,7 +4209,7 @@ some number of hours to an account. Or if the session spans more than
42074209
one day, it is split into several transactions, one for each day. For
42084210
the above time log, `hledger print` generates these journal entries:
42094211

4210-
``` shell
4212+
```cli
42114213
$ hledger -f t.timeclock print
42124214
2015-03-30 * optional description after 2 spaces ; optional comment, tags:
42134215
(some account) 0.33h
@@ -5216,7 +5218,7 @@ Here there are no ordinary transactions, so the forecasted transactions begin on
52165218

52175219
Forecast transactions affect all reports, as you would expect. Eg:
52185220

5219-
```terminal
5221+
```cli
52205222
$ hledger areg rent --forecast --today=2023/4/21
52215223
Transactions in expenses:rent and subaccounts:
52225224
2023-05-20 rent as:ba:checking $1000 $1000
@@ -5226,7 +5228,7 @@ Transactions in expenses:rent and subaccounts:
52265228
2023-09-20 rent as:ba:checking $1000 $5000
52275229
```
52285230

5229-
```terminal
5231+
```cli
52305232
$ hledger bal -M expenses --forecast --today=2023/4/21
52315233
Balance changes in 2023-05-01..2023-09-30:
52325234

0 commit comments

Comments
 (0)