Comments (3)
Version 2.2 should fix your issue.
If not, let me know.
from highlightjs_integration.
Did not fix it
from highlightjs_integration.
To sum-up your issue:
- you have code highlight on mediawiki pages common.css and common.js
- you don't have code highlight on your pages with the following tags
<syntaxhighlight lang="js">
// some js code
</syntaxhighlight>
- with the version 2.2, if you edit the file
init.js
and edit the code as follows, then you have code highlight on your pages
// hljs.configure({
// cssSelector: 'pre.code2highlight, code.code2highlight, pre.mwcode'
// });
// hljs.highlightAll();
$(document).ready(function() {
$('pre.code2highlight, code.code2highlight, pre.mw-code').each(
function(i, block) { hljs.highlightBlock(block); }
);
});
Am I correct with those assumptions?
from highlightjs_integration.
Related Issues (13)
- Download page is broken on the wiki HOT 2
- SyntaxHighlight uses deprecated Sanitizer::validateAttributes syntax HOT 3
- XAMPP Windows, cannot load extension files HOT 1
- Uncaught SyntaxError: Invalid regular expression: missing / HOT 1
- Adding the script tag to the corner
- FeatReq: Add a 'Copy to clipboard' icon
- Extension not working in VisualEditor HOT 1
- List Processing & Highlighting Breaks HOT 1
- Line Numbers HOT 1
- Support line, start, and highlight parameters from SyntaxHighlight extension
- Support style attribute HOT 1
- Prevent removing leading spaces HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highlightjs_integration.