Commit Graph

21 Commits

Author SHA1 Message Date
Ahmed M. Atia
96440b28ba
Add syntax highlighting support for C# (#55)
* feat: add syntax highlighting support for C#

* update README - add C# sysntac highlighting support

* restore original indentation / formatting

* Fix syntax error in Lezer grammar

* Fix language auto detection of C#

---------

Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
2023-12-24 10:59:24 +01:00
Jonatan Heyman
6f53b61bb0 Use guesslang-js for language auto detection instead of Highlight.js
Should (hopefully) reduce false positives.
2023-12-06 02:52:51 +01:00
Jonatan Heyman
2102892776 Fix About dialog UI issues on Windows 2023-07-17 11:57:25 +02:00
Jonatan Heyman
414a44d857 Move about.html into public dir, to have it bundled in production build 2023-07-09 01:02:04 +02:00
Jonatan Heyman
459fcd7c4c Add About dialog
The about dialog contains version info as well as the timestamp for the currency exchange rates.
2023-07-08 16:47:25 +02:00
Jonatan Heyman
b26381164a Improve language auto detection
If content starts and ends with { & } or [ & ], we first try to parse is as JSON. If that succeeds, we'll assume it's JSON.

Increase the highlightjs relevance threshold. 

Hopefully this will result in fewer false positives that have been observed (e.g. for CSS and JSON).
2023-03-07 15:01:41 +01:00
Jonatan Heyman
93bf1e9036 Improve auto update
Add titles to status bar buttons
Bump version to 1.0.7
2023-03-07 01:45:23 +01:00
Jonatan Heyman
7ce91016d6 Add auto update support 2023-03-06 01:30:37 +01:00
Jonatan Heyman
e1fe26b881 Add format block button to status bar, when a supported block is active 2023-03-03 01:40:24 +01:00
Jonatan Heyman
4d12404d77 Add support for Math blocks 2023-03-02 18:40:44 +01:00
Jonatan Heyman
3357e81609 New greenish icon 2023-01-16 23:43:39 +01:00
Jonatan Heyman
8d8f6cdcb3 Add support for Rust, XML and C++
Remove Lezer support
2023-01-16 23:43:22 +01:00
Jonatan Heyman
0b34cc4dd3 Remove old test/template code 2023-01-16 16:32:48 +01:00
Jonatan Heyman
1f73950d8b Fix windows favicon and broken #windows-build 2023-01-16 16:08:39 +01:00
Jonatan Heyman
97995da5e1 Revert "Change icon on Windows"
This reverts commit b561c0184e.
2023-01-16 16:07:39 +01:00
Jonatan Heyman
b561c0184e Change icon on Windows
#windows-build
2023-01-16 15:53:57 +01:00
Jonatan Heyman
895bd4eccc Fix font path to (hopefully) work in release builds
#build
2023-01-15 20:06:57 +01:00
Jonatan Heyman
3b905951af Convert styles.css to SASS and include it by importing it in main.js.
Add fonts: Hack and Open Sans.
Change editor font to Hack.
2023-01-15 19:55:26 +01:00
Jonatan Heyman
d17bade1d6 Pixel push dark/light mode icons 2023-01-15 12:28:34 +01:00
Jonatan Heyman
2f842612fb Read dark/light mode from system, automatically listen for changes, and add button for toggling the mode to the status bar 2023-01-15 11:59:17 +01:00
Jonatan Heyman
9fb543fed3 Move contents of heynote-electron subdirectory into git repo root 2023-01-13 13:21:34 +01:00