Skip to content

Conversation

@henshin
Copy link

@henshin henshin commented Sep 20, 2016

This is an update to the not-yet-approved but awesome syntax highlighter developed by @mehdidc. Credits of the development go to him.
However there were some issues with the implementation:

  • Keepnote was removing HTML encoded entities
  • Keepnote was removing multiple spaces and tabs
  • Both of these issues were messing up the code badly
  • I also set the language bar to always auto focus each time we open the window

mehdidc and others added 5 commits November 20, 2012 23:15
Fixes 3 things:
 - Keepnote doesn't support HMTL entities, so after retrieving the output from the highlight function, we need to convert back the entities to plaintext. Without this, many characters were just ignored such as quotes 
 - Keepnote doesn't support TABs or multiple spaces so we need to replace them with with non breaking spaces so that indentation works correctly
 - Auto focus on the language combo box every time we open the syntax highlighter
Added style dropdown option
We cannot unescape everything or it will cause some problems for example for PHP or HTML.
This way we can escape only the minimum necessary
@kchr
Copy link

kchr commented Jun 29, 2017

Any progress on this? Can we help with anything?

@henshin
Copy link
Author

henshin commented Jul 1, 2017

It's working for me :) Using it everyday without issues.
Let me know if you find any.

@kchr
Copy link

kchr commented Jul 2, 2017 via email

@henshin
Copy link
Author

henshin commented Jul 2, 2017

Yeah I tried to get it working on Windows but I've ran into some issues as well. Specifically, you will need to have Python with pygments module installed.
On Linux it's works great though. That's what I use most.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants