…..i want to change the background colour of CherryTree’s codeblocks.
I use Linux as my OS of choice and have for many years. One thing that has been missing is a really good all round note application. I have always wanted something like Onenote but for the past few years I have discovered how powerful markdown is. The use of the ‘`’ (back tick) to insert command line or code in the middle of a document is extremely useful, I find it so much easier to read because it breaks down the text into a consumable form.
These days there are a lot of Electron markdown note taking apps popping up, this isn’t necessarily a bad thing but I find electron apps don’t look very good at all in Linux. I use typora at work on my Mac and it looks native. The same application just looks pretty bad under Ubuntu. Yes it does look worse because it is a Snap but even under fedora it isn’t great.
Anyway…..
CherryTree is not a markdown editor but it is a very loved and feature rich note application (Which is currently bucking the trend of Electron and getting ported to GTK3 C++). CherryTree doesn’t have the same markdown style backticks but it does have codeblock; either plain text or a programming code block which can be executed. However the default styles don’t gently highlight the background of the block.
Theme File Location:
I have moved to CherryTree form Zim on frend's recomendation and because it has a good import utilitiy. I liked it at first, but then I realized, there is no way out. CherryTree's export feature is very crippled and you can not export to any meaningfull format even Markdown is not supported. Cherry Tree Toys can provide you with all the woodworking supplies to complete project from woodworking plans, wood parts, lumber, clock parts and scroll saw plans. CherryTree is a practical tool that lets you take notes and save any kind of text that you can then review or continue to add to on the go. It includes a small bar with which you can prioritize information and, in general, organize it such that while you're taking your notes, you can indicate which parts are more important than others.
Go to Scribes Theme Generator to create a new theme and save the XML or make a copy of an existing theme style.
Then copy it to the theme location above (Correct as of Ubuntu 19.04).
Open CherryTree->Edit->Preferences->Plain Text andCode |
Now you should see the new theme in the Style Scheme list.
Cherry Tree Markdown Movie
After restarting CherryTree you should see it take effect.
Please Note: It will change the theme of the code pages too NOT just code blocks.
Markdown File Tree
There two versions of the file. One has line highlighting while the other does not.
Cherry Tree Markdown 2019
- This is the first public release of the 0.99.x serie where Evgenii (@txe) and myself (@giuspen) have rewritten everything from scratch in C++/GTK3
- This attempts to list the features not yet ported and brand new against 0.39.4, currently last Python2/GTK2 release
- The following imports are missing and may not be implemented at all if not requested: Basket, EPIM HTML, KeyNote, KnowIt, TuxCards
- Ubuntu AppIndicator is not currently supported
- New: Export to PDF support for hyperlinks (work of @ForeverRainbow)
- New: Export to HTML option to produce a single file
- New: Duplicate a node and its subnodes (before only the selected node could be duplicated)
- New: Option to scroll beyond the last line, enabled by default
- New: The rich text does no longer have light/dark/custom theme but a range of themes to select from like already for plain text & code
- New: Tables also can select their own theme like rich text and plain text & code
- New: You can now right click a node or an anchor and select to copy a link to it in the clipboard, then paste the link into rich text
- New: Formatting tag to indent/unindent (work of @metal450)
- New: The tables are implemented with a different library widget, editing a cell is easier, Ctrl+Arrow to move cursor between cells
- New: For both codeboxes and tables, Ctrl+Space allows to move the cursor in and out
- New: Rich text, monospace tag has the font configurable in the preferences dialog
- New: Column edit mode scintilla-like holding down Ctrl and Alt and selecting the column (cut/copy/paste not yet supported)
- New: Foreground and background tags in the rich text can be removed without altering the other tags
- New: The cherrytree backup files can be saved in a configured directory rather than the document directory
- New: Code build/execution, in preferences dialog it is configurable also the file extension of the temporary generated file
- New: Import from markdown file/folder (work of @ForeverRainbow)
- New: Option for markdown auto replacement to rich text (work of @ForeverRainbow)
- New: The toolbar supports multiple rows of icons
- New: Filetype icons for file attachments on Linux (work of @metal450)
- New: it is configurable whether to wrap or not the nodes names in the tree, off by default
- New: Now configurable from the preferences dialog are the “Embedded file size limit”, “Triple click to select the whole paragraph”, “Chars for bulleted list”, “Chars for todo list”, “Chars for table of content”, “Chars for smart double quote”, “Chars for smart single quote”
- New: It is configurable whether to show the document directory in the window title or not