Looking for syntax highlighting in KDE XML format

51 views
Skip to first unread message

Colin Dean

unread,
Jun 27, 2020, 7:44:36 PM6/27/20
to Ledger
Hey all,

I'm building a workshop around Ledger. I'm using Pandoc to build the materials. I'd really like it to highlight the syntax of the ledger examples I'm using in the documents I'm producing. Pandoc predictably doesn't have ledger format already available as a syntax highlighting language. It can take KDE XML syntax definitions at build time, though (https://pandoc.org/MANUAL.html#option--syntax-definition).

I found a nice repository of them in the skylighting repository at https://github.com/jgm/skylighting/tree/master/skylighting-core/xml but I think these are the definitions baked into Pandoc (same author).

Does anyone have a syntax highlighting definition for ledger in KDE XML format? 

Colin Dean

unread,
Jul 13, 2020, 9:05:51 PM7/13/20
to Ledger
I've not been able to find a ledger syntax highlighting file in KDE XML format. I'd really like one. I'm willing to pay commission on it, perhaps $50 USD to the first person who provides one to me and posts here.

Luka Bradesko

unread,
Nov 18, 2020, 9:51:21 AM11/18/20
to Ledger
Hi, we just created a first version of one for IntelliJ:

Colin Dean

unread,
Nov 18, 2020, 6:34:11 PM11/18/20
to Ledger
That's really neat, Luka. What are your plans for that plugin?

Luka Bradesko

unread,
Nov 18, 2020, 10:58:22 PM11/18/20
to Ledger

Hi,
a bit longer answer:)

The short term plan is to make it support our use-cases really well + if we get any suggestions or wishes from other users.
Then, the longer term depends a bit on the feedback from the community, whether there is interest or not. My plan is to make it into a powerful accounting tool, combining the CLI+Text, with graphical capabilities and help of IDE. So in the future it has some chance to grow its user base out of programmers who are forced to do finances/accounting, more towards accountants and non-programmers, while still keeping the full CLI appeal.

At the moment I use it as a main personal finance tool, and a backup accounting tool for my company, so I can quickly do my own reports and decisions based on the finances, without the need to wait for the accounting department to give me insights. I find it really useful for this task and this is what made me write the plugin, to make it easier and faster to maintain a ledger copy of the financial data.

Currently it does:
- Syntax highlighting [dates must be 2020/11/22
- Accounts autocomplete
- Marks invoices that are unpaid, and over the payment deadline
- Marks uncleared, but not over the deadline transactions

Short term plan/need:
- Add the rest of date formats
- Autocomplete for tags
- "Jump to definition", and "find usages/references" for tags and codes
- Ctrl+click jumping for tags/references/codes/dates where there is 1 possible resolution
- "report views", where a pane or window in IDE shows real-time view of the user's custom given "report command", i.e.: "ledger bal ^Expenses -p 2020"
- copy-paste translation from TSV/Som EU/Slo + bank of America banks, where paste into IDE converts to ledger format, in a similar way as IntelliJ converts Java into Kotlin. We need this because some banks lack proper secure APIs to do automatic export
- generate PDF invoices from ledger transactions
- live documentation helper/ledger hints

Longer term:
- automate PDF invoicing + sending for recurring invoices such as monthly maintenance
- proper bank data import
- sync with main accounting system
- graphs
- Graphical IDE windows for reports

Something in this direction. Of course now this is on a slow track, as it's not our company's main activity, but because I found it a very fun and engaging task I add it to the market, to see whether there is any interest.

Luka Bradesko

unread,
Nov 19, 2020, 12:43:06 AM11/19/20
to ledge...@googlegroups.com
--

---
You received this message because you are subscribed to a topic in the Google Groups "Ledger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ledger-cli/yM5zR1iCMMI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ledger-cli+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/acb2b531-8359-45b2-9b84-04992d20a08en%40googlegroups.com.


--
dr. Luka Bradeško
Managing Director


Solvesall d.o.o
Tržaška cesta 68A
1000 Ljubljana, Slovenija

Tel:       +386 51 368 848
Web:     www.solvesall.com

Colin Dean

unread,
Nov 20, 2020, 9:13:58 PM11/20/20
to Ledger
Looks really cool. I'll keep an eye on it!
Reply all
Reply to author
Forward
0 new messages