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. |
| } | ||
|
|
||
| </style> | ||
| <script src="/static/codemirror/lib/codemirror.js"></script> |
There was a problem hiding this comment.
You have mentioned static/codemirror folder here. But it hasn't been added in your PR.
There was a problem hiding this comment.
But it is there locally 😕
There was a problem hiding this comment.
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.
if i remove codemirror from .gitignore there will be a lot of files then.
There was a problem hiding this comment.
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.
./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