Giter VIP home page Giter VIP logo

Comments (8)

kucrut avatar kucrut commented on July 23, 2024

Hmm, you can already use backticks:

`
code...
`

from wp-dev-lib.

fjarrett avatar fjarrett commented on July 23, 2024

Oh wow. To my surprise this already works! πŸ˜„

By doing: <pre lang="php">

screen shot 2015-01-03 at 11 39 18 am

screen shot 2015-01-03 at 11 39 38 am

from wp-dev-lib.

fjarrett avatar fjarrett commented on July 23, 2024

@kucrut That's what I thought too, but single backticks used to create code blocks were breaking the page when used in the FAQ tab on my WordPress.org plugin. Using them for inline code seems to work fine.

from wp-dev-lib.

fjarrett avatar fjarrett commented on July 23, 2024

I'm going to reopen this because I do think there is some slight room for improvement.

It would be cleaner if <pre lang="php"> converted to ```php in markdown.

from wp-dev-lib.

westonruter avatar westonruter commented on July 23, 2024

So <pre lang="php"> is part of the WP readme.txt β€œstandard”? I don't see it mentioned on https://wordpress.org/plugins/about/readme.txt

Is it a hidden feature?

from wp-dev-lib.

fjarrett avatar fjarrett commented on July 23, 2024

@westonruter Not sure if it's part of the "standard", but it does seem to work.

https://wordpress.org/plugins/prevent-concurrent-logins/faq/

from wp-dev-lib.

westonruter avatar westonruter commented on July 23, 2024

That's great. I was wondering how we could implement that.

from wp-dev-lib.

westonruter avatar westonruter commented on July 23, 2024

@fjarrett let me know how #68 works for you.

from wp-dev-lib.

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.