@@ -67,12 +67,14 @@ are some good choices (see <https://hledger.org/editors.html>).
67
67
68
68
To get started, run ` hledger add ` and follow the prompts,
69
69
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
+ ```
76
78
Run ` hledger ` to list the commands.
77
79
See also the "Starting a journal file" and "Setting opening balances" sections
78
80
in [ PART 5: COMMON TASKS] ( #part-5-common-tasks ) .
@@ -1884,7 +1886,7 @@ Here are some tips for working with account types.
1884
1886
5 . Otherwise, it will have no type.
1885
1887
1886
1888
- For troubleshooting, you can list accounts and their types with:
1887
- ```
1889
+ ``` cli
1888
1890
$ hledger accounts --types [ACCTPAT] [-DEPTH] [type:TYPECODES]
1889
1891
```
1890
1892
@@ -3177,22 +3179,22 @@ Note the two kinds of field names mentioned here, and used only in hledger CSV r
3177
3179
you can optionally name the CSV columns for easy reference
3178
3180
(since hledger doesn't yet automatically recognise column headings in a CSV file),
3179
3181
by writing arbitrary names in a ` fields ` list, eg:
3180
- ``` csv
3182
+ ``` rules
3181
3183
fields When, What, Some_Id, Net, Total, Foo, Bar
3182
3184
```
3183
3185
3184
3186
2 . Special ** hledger field names** (` HLEDGERFIELD ` in these docs):
3185
3187
you must set at least some of these to generate the hledger transaction from a CSV record,
3186
3188
by writing them as the left hand side of a [ field assignment] ( #field-assignment ) , eg:
3187
- ``` csv
3189
+ ``` rules
3188
3190
date %When
3189
3191
code %Some_Id
3190
3192
description %What
3191
3193
comment %Foo %Bar
3192
3194
amount1 $ %Total
3193
3195
```
3194
3196
or directly in a [ ` fields ` list] ( #fields-list ) :
3195
- ``` csv
3197
+ ``` rules
3196
3198
fields date, description, code, , amount1, Foo, Bar
3197
3199
currency $
3198
3200
comment %Foo %Bar
@@ -4207,7 +4209,7 @@ some number of hours to an account. Or if the session spans more than
4207
4209
one day, it is split into several transactions, one for each day. For
4208
4210
the above time log, ` hledger print ` generates these journal entries:
4209
4211
4210
- ``` shell
4212
+ ``` cli
4211
4213
$ hledger -f t.timeclock print
4212
4214
2015-03-30 * optional description after 2 spaces ; optional comment, tags:
4213
4215
(some account) 0.33h
@@ -5216,7 +5218,7 @@ Here there are no ordinary transactions, so the forecasted transactions begin on
5216
5218
5217
5219
Forecast transactions affect all reports, as you would expect. Eg:
5218
5220
5219
- ` ` ` terminal
5221
+ ` ` ` cli
5220
5222
$ hledger areg rent --forecast --today=2023/4/21
5221
5223
Transactions in expenses:rent and subaccounts:
5222
5224
2023-05-20 rent as:ba:checking $1 000 $1 000
@@ -5226,7 +5228,7 @@ Transactions in expenses:rent and subaccounts:
5226
5228
2023-09-20 rent as:ba:checking $1 000 $5 000
5227
5229
` ` `
5228
5230
5229
- ` ` ` terminal
5231
+ ` ` ` cli
5230
5232
$ hledger bal -M expenses --forecast --today=2023/4/21
5231
5233
Balance changes in 2023-05-01..2023-09-30:
5232
5234
0 commit comments