-
Notifications
You must be signed in to change notification settings - Fork 228
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
How to apply CodeMirror theme ? #121
Comments
Hi @lopezzlaura, I am sorry you are frustrated. I have never tried to enable a theme, or syntax highlighting with Mergely. This is because Mergely applies a lot of styles to achieve the diff. You should be using the option, cmsettings to apply the codemirror theme. If that doesn't work, I can recommend you use the developer console (e.g. in chrome or firefox). Is the theme being loaded? Inspect DOM elements to see what classes are being applied. Maybe manually disable mergely.css and see what happens. Mergely has an autoupdate function that could be screwing with your styles. Maybe disable it. |
Hi @wickedest , But when it is used in Mergely, it is apparently not working the same way : So the text coloration does not apply, do you have any idea on how to turn on this word partition thing ? I have tried to disable autoupdate and mergely css but it is not working yet. |
Hi, |
HI @lopezzlaura, I was able to get an example working with theme: midnight, and mode: sql.
<link type="text/css" rel="stylesheet" href="midnight.css" />
<script type="text/javascript" src="sql.js"></script>
/*
.mergely.c.lhs,
.mergely.c.rhs { background-color: #fafafa; }
*/ |
Hi @wickedest, |
@lopezzlaura, it should work with Angular. It's just js/css. If you share an example of the issue, I can take a look. |
Hi,
I'm am using your component in Angular and everything seems to be working perfectly when it come to the diff functions and stuff but one thing I cannot manage to do is making Mergely apply the CodeMirror theme that I want to use.
This is the config I have :
This is the display I got from it : (the background gets the right background color from the theme but no text is ever colored)
If you have any idea I would really appreciate that, I have been working on it for 2 days
The text was updated successfully, but these errors were encountered: