New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Syntax Highlighting (take 2) #379
Conversation
- porting markdown interpreter error handling - call highlight.js for markdown pre code blocks - call ace editor setTheme - add highlight.js to bower and override to add selected style + style/theme for ace
This reverts commit de7d0e2.
Reviewed, much shorter and cleaner codes than before! Great!! |
Thanks, I noticed that too when I switched to a different editor theme, didn't realize it was happening somewhere else. |
Something is overriding the selection but it's not app/style/notebook.css
any idea? |
Fixed editor selection color issue. |
Any more thoughts or comments? |
I still have selection problem, am i missing something? |
…x: auto in notebook.css Also remove unneeded background color since they are now the same as the github theme
@Leemoonsoo Sorry about that, I must have been messing it too much in the browser dev tool. That was only a partial fix. Here's what it looks like now: And there has been a similar issue with word selection and it is also fixed: |
@Leemoonsoo Good point. This was also pointed out in PR #300. Since we bring in both bootstrap and highlight.js with bower, I'm not sure which is the best option to address this:
Option 1 is rather hard to discover for a new comer (me?) to find all those overrides.... Also, we have options on the color to change it to: Could we merge this for now and I'll follow up with another PR? |
why another PR? |
I wanted to just push the CSS fix, but it means I would nee to fork @felixcheung Zeppelin fork, then do a pull request on his fork..... So, since there is no theme switch for hightlight.js, and we don't handle css theme change, we can just add the fix to notebook.css.
This also fix an annoying margin border on Ace editor |
+1 for @corneadoug 's solution |
1 similar comment
+1 for @corneadoug 's solution |
…editor.setShowPrintMargin(false) does not work - it will collapse the entire editor)
Updated. |
Tested and Looks good to me |
I added this PR to https://github.com/NFLabs/zeppelin/issues/383. |
@felixcheung Thanks for contribution! awesome job! |
Code Syntax Highlighting (take 2)
Very Nice! Thanks |
Great job! On 2015년 3월 19일 (목) 12:53 Felix Cheung notifications@github.com wrote:
|
Hot fix for https://issues.apache.org/jira/browse/ZEPPELIN-375, until we get better resolution. This patch moves geode from default build to profile. Author: Lee moon soo <moon@apache.org> Closes ZEPL#379 from Leemoonsoo/ZEPPELIN-375-hotfix and squashes the following commits: 7740296 [Lee moon soo] Hotfix for ZEPPELIN-375
#300 - continuing from where we left off. I ran into some very bad error with js and couldn't figure out how to make it not error out, so I finally gave up I started clean in a new branch.
This PR includes Markdown code block syntax highlighting and Ace Editor theme setting, as an example. It only set 1 theme (matching for now) for each.
Also detailing in documentation what's required if someone wants to change it.
Here's what it looks like:
And here's 'what-if' if we are to change theme for the editor (but not markdown) This is not checked in. To be clear, no way to use this theme without changing code/build)
Feedback appreciated.