Syntax highlighting makes sense or there no highlighting at all.
Actual result
Highlighting seems random. The worst - some executable code rendered as comments (marked on screenshot)
Environment
Which operating system are you using? Windows 10
Which browser are you using? Chrome 89.0.4389.90
If youâre using a desktop or mobile app, whatâs the version number of Dynalist? Desktop and web 1.4.5
Are you using any third-party scripts for Dynalist, e.g. PowerPack? No
Additional information
This is probably due to language (mis)detection. If itâs impossible to do get it right, there must be an option to disable. Wrong highlighting is much worse than no highlighting at all
I noticed this has been implemented by this monthâs release notes. I just have no idea how to specify the language to be used by the code block.
Also, is there still a way to make it auto-detect the language?
I ask this because I have no idea what was the language used for some of my code blocks and Iâd like to make them return to their previous state (rendered). Theyâve lost the formatting now. Not a big deal for me as Iâm not a developer or anyone that relies heavily on this feature (if I were this kind of person, probably I wouldnât be asking this in the first place )
If this is not possible, then please provide a link where I can search for a language list and try applying into my lists.
Sorry, but that still looks like greek to me. Is there a tutorial available on how to use this Multiline code block feature? And how to properly select the language to be shown?
I used to throw some random code blocks into Dynalist and it automatically detected the language. Was it the correct language all the time? I have no idea. But to me it highlighted the parts of the code pretty well, with the variation in colors.
Sorry, but i donât understand what you mean. From when i started using Dynalist (1 year ago) the code block have colored very well all my code, like Java, C#, bash scripts. From yesterday all the code snippets are black and white. I donât know how.
Thanks for the clarification Alan .
I have already done some test and apply what you have mentioned, but most of my code blocks just not colorize. Most of the time use âbashâ script. I wish this behavior can be improved.
Thanks a lot. I was able to test some language types obtained from this site - highlight.js demo (highlightjs.org) but yes, there is clearly a bug in the rendering.
When we edit the code block and leave it, it does nothing. We have always to do a browser refresh. But whenever we change something on it, it stops rendering again and a new refresh is neededâŚ