Comments (9)
linebreaks should be \n
or \r\n
- just regular text within the html container
from enlighterjs.
More example is:
<pre class="syntax"><?<br />if (CModule::IncludeModule("tasks"))<br />{<br /><br /> $ID = 1;<br /><br /> if($USER->IsAdmin())<br /> {<br /> CTasks::Delete($ID);<br /> }<br /><br />}<br />?></pre>
should break the lines, but instead
from enlighterjs.
Hi @eshimischi
that's not the way EnlighterJS is working: everything within the wrapper (can be any kind of html container) is handled as source code. changing the code styling has to be done via the themes
from enlighterjs.
Hi @eshimischi
that's not the way EnlighterJS is working: everything within the wrapper (can be any kind of html container) is handled as source code. changing the code styling has to be done via the themes
Hello, thanks for your reply, but perhaps i asked things incorrectly. I do understand that everything within wrapper is treated as source code, but is any way to treat html tags as html tags in php code or not?
from enlighterjs.
you cannot use any kind of html markup (including css) within the sourcecode - the tokenizer will handle it as mostly invalid token because it's not part of the language set. this doesn't affect displaying html sourcecode in php
from enlighterjs.
you cannot use any kind of html markup (including css) within the sourcecode - the tokenizer will handle it as mostly invalid token because it's not part of the language set. this doesn't affect displaying html sourcecode in php
i see, yes it is invalid in my case
from enlighterjs.
if your attention is to display this part CTasks::AddTags
as bold text then yes. you have to change the theme style of the related token m0
from enlighterjs.
if your attention is to display this part
CTasks::AddTags
as bold text then yes. you have to change the theme style of the related tokenm0
i'll remove html markup within php code and in case of <br>
i'll change it to \r\n instead. Thanks for your reply, again.
from enlighterjs.
linebreaks should be
\n
or\r\n
- just regular text within the html container
yes, correct, my bad above.
from enlighterjs.
Related Issues (20)
- Supercollider HOT 6
- Add support for Terraform HOT 1
- add support for TCL language HOT 1
- Bad button positioning in {one, two & three}-line code block HOT 1
- Problem with styling around enlighter block HOT 2
- AMP Compatibility HOT 4
- Bash syntax highlighter renders $# incorrectly as the beginning of a comment HOT 1
- Grafik
- Can we easily amend the inline styles HOT 3
- Report not exporting HOT 1
- makefile support HOT 1
- How to overwrite styles based on the selected Language HOT 6
- Is it possible to combine this with Typed.JS? HOT 1
- imho it doesn't make sense to apply a animation library (single line without formatting) to a complex html structure. this would require a complete custom integration into EnlighterJS. HOT 1
- Atom One dark / pro, Material UI and Github theme HOT 1
- Height of Gutenberg Block HOT 2
- Idea ChatGPT HOT 3
- mobile/test tools ignore enlighter JS? HOT 3
- Scrollbar problem
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 enlighterjs.