Coder Social home page Coder Social logo

PHP syntax highlighting about docs.mybb.com HOT 9 CLOSED

mybb avatar mybb commented on August 15, 2024
PHP syntax highlighting

from docs.mybb.com.

Comments (9)

JordanMussi avatar JordanMussi commented on August 15, 2024

Doesn't using

```php
require_once MYBB_ROOT."/inc/adminfunctions_templates.php";
    find_replace_templatesets(
    "index",
    "#" . preg_quote('<body>') . "#i",
    '<body>{$myVar}'
);
```

work?

require_once MYBB_ROOT."/inc/adminfunctions_templates.php";
    find_replace_templatesets(
    "index",
    "#" . preg_quote('<body>') . "#i",
    '<body>{$myVar}'
);

from docs.mybb.com.

darksonic37 avatar darksonic37 commented on August 15, 2024

Yeah, on GitHub, not on the site. See the link above.

from docs.mybb.com.

JordanMussi avatar JordanMussi commented on August 15, 2024

Issue on Jekyll tracker: jekyll/jekyll#1262
If we use the {% highlight %} tags then it'll work without opening and closing PHP tags...

from docs.mybb.com.

JoshHarmon avatar JoshHarmon commented on August 15, 2024

Ok. Any docs with PHP in them either have to start with opening PHP tags, or you have to use {% highlight php startinline %}

I'm going to ignore the 1.6 Docs, since I consider those deprecated along with MyBB 1.6 itself. So within the 1.8 Docs, from what I can tell, this affects:

I'm going to start work on fixing the markup for those so that we can have pretty syntax highlighting. Pages look pretty boring without color mixed in.

from docs.mybb.com.

JoshHarmon avatar JoshHarmon commented on August 15, 2024

Welp... Here goes nothing...

Edit: Since the last reference, earliest at top (forgot to tag the issue in the commits!)
a7768d4
67fa75a
11764ce
cb85a42
9f2e640
7fdab44
62679e6
eed2b43
b65b681

from docs.mybb.com.

JoshHarmon avatar JoshHarmon commented on August 15, 2024

Aaaand now it should build.

from docs.mybb.com.

JoshHarmon avatar JoshHarmon commented on August 15, 2024

Think this is fixed now!

from docs.mybb.com.

darksonic37 avatar darksonic37 commented on August 15, 2024

Cool!

from docs.mybb.com.

JoshHarmon avatar JoshHarmon commented on August 15, 2024

You're alive!? It's been a long time since we've heard/seen anything from you! 😄

from docs.mybb.com.

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.