-
Notifications
You must be signed in to change notification settings - Fork 8
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
Syntax Highlighting #39
base: master
Are you sure you want to change the base?
Syntax Highlighting #39
Conversation
codemirror configured COdemirror configured
@142ayushkumar can you just pull from the master once? |
@kaustubhhiware Done! |
@142ayushkumar You have made your To give a preliminary idea, heroku needs an app.json file (added yesterday) to auto-deploy PR's. That is present in your |
@kaustubhhiware , i have merged my branched with master now! |
@142ayushkumar Please refer to http://c0derunr-pr-39.herokuapp.com/ Seems code highlighting is not working. |
@@ -91,6 +91,9 @@ | |||
} | |||
|
|||
</style> | |||
<script src="/static/codemirror/lib/codemirror.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have mentioned static/codemirror
folder here. But it hasn't been added in your PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it is there locally 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have mentioned codemirror
in .gitignore. Seems it's ignoring all codemirror folders.
I think you wanted to ignore ./codemirror
. but gitignore makes it ignore ./static/codemirror
as well. Check how you can fix this. Looks like an easy fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i remove codemirror from .gitignore there will be a lot of files then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to see how to add ./codemirror
to .gitignore, but not ignore ./static/codemirror
It is possible to NOT ignore certain files / folders in .gitignore. What you've done is not wrong, it's just incomplete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./codemirror
!./static/codemirror
will do the work i guess
Redeployed app. |
Using static codemirror seems to overload files. Then we can try to debug where the switcher is failing. |
I didn't noticed |
Yes, language switcher stopped working, to change language now we have to refresh the page. |
@kaustubhhiware ,I configured ace for syntax highlighting but the same problem is still there, after configuring language switcher doesn't work. |
@kaustubhhiware , i think something is wrong with language selector anyway, by chosing some language the template doesn't change like Java. |
d40651d
to
95ea0e8
Compare
codemirror configured