laverna icon indicating copy to clipboard operation
laverna copied to clipboard

Note search and syntax highlighting

Open LuxGiammi opened this issue 8 years ago • 7 comments

Dear Laverna developers,

I was wondering if I could add more languages for syntax highlighting. I noticed there are: python, ruby, javascript and c, but I was not able to insert, for instance, C# code. Is there a way to add syntax highlighting for other languages?

Another question: how can I search a word in a note? Is there a "Find" feature? Are you looking forward to implementing it?

Thanks a lot.

Best regards.

LuxGiammi avatar Jun 30 '16 20:06 LuxGiammi

C# code highlighting works for me, using

<code>

I agree that a find within function within notes would be very helpful. In the browser, ctrl+f works, but on the desktop client it doesn't.

sander2 avatar Jul 01 '16 16:07 sander2

On the desktop client you need to enable Electron Search module in the settings page and Ctrl-f function should be available.

wwebfor avatar Jul 02 '16 09:07 wwebfor

Thanks a lot! I did not know it. And I have also discovered that I could enable also MathJax.

Now Laverna is my favourite app for taking programming notes.

Jymmy097

LuxGiammi avatar Jul 03 '16 09:07 LuxGiammi

Awesome! Thanks!

bkht avatar Oct 03 '16 08:10 bkht

Is there somewhere complete list of supported highlights I can force use (after ```)? At least I know about java, c, j,...?

theerror avatar Nov 22 '17 10:11 theerror

You can modify https://github.com/Laverna/laverna/blob/master/gulps/prism.js if you look at the file you'll also find c# supported as csharp

ehsan-keshavarzian avatar Oct 31 '18 03:10 ehsan-keshavarzian

Hi @ehsan-keshavarzian @LuxGiammi @bkht @theerror @sander2,

Unfortunately this issue will never be fixed here.

Please report to https://github.com/Laverna/laverna/issues/971#issuecomment-411423965 for the current state of this project and https://github.com/encryptic-team/encryptic for the future of this project.

Have a nice day/night.

Cheers, Nissar

funilrys avatar Oct 31 '18 06:10 funilrys