enlighterjs / documentation Goto Github PK
View Code? Open in Web Editor NEW:pencil: EnlighterJS3 Documentation including all plugins
Home Page: https://enlighterjs.org
License: Other
:pencil: EnlighterJS3 Documentation including all plugins
Home Page: https://enlighterjs.org
License: Other
When trying to place code with these tags, they are excluded. Also, when is used, it will overwrite previous links. For example, I have stylesheets linked. But when linking stylesheets between the pre tags, these stylesheets will overwrite the others if they have the same class names.
Hi
I am fairly technical ( as I work in IT) but this baffled me a bit as these instructions seem difficult to follow.
Experimental EnlighterJS3 Integration into Enlighter WordPress Plugin v3
Targeted to advanced users only! I think you mean PHD students!!!
Enlighter Plugin Settings
WordPress Backend -> Enlighter -> Options -> Resources and CDN
Include Enlighter-CSS : DISABLE
Include Enlighter-Javascript : DISABLE
Include External Themes : DISABLE
MooTools Framework Source: "NOT INCLUDE"
Enlighter Config: "NOT INCLUDE"
Q: In my world, I don't see any wordpress backend so just /public_html and beyond . So none of the above seem obvious in either the Enlighter Options page or when I browse the plugin with FileZilla
Add EnlighterJS3 Resources to your Theme
Q: If you are referring to enlighterjs.min.css and enlighterjs.min.js , then surely you mean I replace the relevant files in the /resources folder
Upload the enlighterjs resources to your theme and include them.
Q: again why would I want be hacking my theme. I would have thought there is away for the existing Enlighter Plugin to include the files it needs as part of Enlighter3 JS RC1
Header Code
<!-- EnlighterJS CSS !-->
<link rel="stylesheet" href="enlighterjs.min.css" />
Footer Code
<!-- EnlighterJS -->
<script type="text/javascript" src="enlighterjs.min.js"></script>
<!-- Init Code -->
<script type="text/javascript">
// special Enlighter Plugin Init Code
EnlighterJS.init('pre.EnlighterJSRAW', 'code.EnlighterJSRAW');
</script>
Modify Enlighter Plugin Language+Theme Lists
You have to override the Language + Theme Lists with the current available ones!
_Q: are you referring to the current version of the Enlighter Plugin? If so a better approach would be to see dir/file and locate lines xxxx and replace with yyyyy _
Themes Languages
The shell command:
latestVer=$(curl -s 'http://nginx.org/en/download.html' | sed 's/\'$'\n''</g' | sed -n '/Stableversion$/,$ p' | egrep -m1 -o '/download/nginx-.+\.tar\.gz')
was translated to:
latestVer=$(curl -s 'http://nginx.org/en/download.html' | sed 's/<!--\'$'\n''</g' | sed -n '/-->Stableversion$/,$ p' | egrep -m1 -o '/download/nginx-.+\.tar\.gz')
Any workaround?
Thanks.
Hello, I am using this plugin on Wordpress now, but the code format generated by the plugin is:
.
.
.
<;div class="enlighter-default ...">...<;/div>
<;pre class=''EnlighterJSRAW enlighter-origin'>...<;/pre>
.
.
.
, for better layout, I want to add a div outside, like this:
.
.
.
<;figure class="...">
<;div class="enlighter-default ...">...<;/div>
<;pre class=''EnlighterJSRAW enlighter-origin'>...<;/pre>
<;/figure>
.
.
.
May I ask what should be done?
您好,我现在是在Wordpress上使用该插件,但插件生成的代码格式是:
.
.
.
<;div class="enlighter-default ...">...<;/div>
<;pre class=''EnlighterJSRAW enlighter-origin'>...<;/pre>
.
.
.
,为了更好的排版,我想在外部加一个div,类似这样:
.
.
.
<;figure class="...">
<;div class="enlighter-default ...">...<;/div>
<;pre class=''EnlighterJSRAW enlighter-origin'>...<;/pre>
<;/figure>
.
.
.
可以问下应该怎么做吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.