Skip to content

Commit

Permalink
fix code highlight bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangruize committed Mar 3, 2019
1 parent 0d327af commit 328d4af
Show file tree
Hide file tree
Showing 35 changed files with 237 additions and 482 deletions.
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,51 @@ Question2answer Formatter

This plugin provides an option to add MathJax script, Prettify script and a Preview for CKEditor and enables them by default on all pages.

For editor support please use this <a href="https://github.com/arjunsuresh/ckeditor-Q2A">modified ckeditor</a>.
For editor support please use this [modified ckeditor](https://github.com/tangruize/q2a-formatter/releases).

Download the ckeditor and place inside qa-plugin/wysiwyg-editor folder. Also copy qa-question.js file inside tobecopied folder to qa-content folder replacing the file present there.
Download the ckeditor and place inside qa-plugin/wysiwyg-editor folder.

I also recommend you to install [q2apro-warn-on-leave](https://github.com/q2apro/q2apro-warn-on-leave) plugin, which warns the user that text area has been changed when he is leaving.

This is a beta code, use it at your own risk on a production environment.

# Default Configuration
MathJax Configuration:
```
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ [\'$\',\'$\'], ["\\\\(","\\\\)"] ],
config: ["MMLorHTML.js"],
jax: ["input/TeX"],
processEscapes: true
}
});
MathJax.Hub.Config({
"HTML-CSS": {
linebreaks: {
automatic: true
}
}
});
```

MathJax URL:
```
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML
```

highlight.js URL:
```
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js
```

highlight.js Style URL:
```
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css
```

More highlight.js and styles: https://cdnjs.com/libraries/highlight.js/


highlight.js demo: https://highlightjs.org/static/demo/
105 changes: 0 additions & 105 deletions custom.css

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-apollo.js

This file was deleted.

3 changes: 0 additions & 3 deletions pf/lang-basic.js

This file was deleted.

18 changes: 0 additions & 18 deletions pf/lang-clj.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-css.js

This file was deleted.

3 changes: 0 additions & 3 deletions pf/lang-dart.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-erlang.js

This file was deleted.

1 change: 0 additions & 1 deletion pf/lang-go.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-hs.js

This file was deleted.

3 changes: 0 additions & 3 deletions pf/lang-lisp.js

This file was deleted.

1 change: 0 additions & 1 deletion pf/lang-llvm.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-lua.js

This file was deleted.

Loading

0 comments on commit 328d4af

Please sign in to comment.