Giter Club home page Giter Club logo

Comments (9)

AndiDittrich avatar AndiDittrich commented on June 9, 2024 1

linebreaks should be \n or \r\n - just regular text within the html container

from enlighterjs.

eshimischi avatar eshimischi commented on June 9, 2024

More example is:
<pre class="syntax">&lt;?<br />if (CModule::IncludeModule(&quot;tasks&quot;))<br />{<br /><br /> $ID = 1;<br /><br /> if($USER-&gt;IsAdmin())<br /> {<br /> CTasks::Delete($ID);<br /> }<br /><br />}<br />?&gt;</pre>


should break the lines, but instead
Screenshot 2023-06-01 at 17 24 52

from enlighterjs.

AndiDittrich avatar AndiDittrich commented on June 9, 2024

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.

eshimischi avatar eshimischi commented on June 9, 2024

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.

AndiDittrich avatar AndiDittrich commented on June 9, 2024

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.

eshimischi avatar eshimischi commented on June 9, 2024

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
Screenshot 2023-06-02 at 09 39 30

from enlighterjs.

AndiDittrich avatar AndiDittrich commented on June 9, 2024

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.

eshimischi avatar eshimischi commented on June 9, 2024

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

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.

eshimischi avatar eshimischi commented on June 9, 2024

linebreaks should be \n or \r\n - just regular text within the html container

yes, correct, my bad above.

from enlighterjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.