Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i show the code block inline or what are shortcodes ? #271

Open
aussietechexperts opened this issue Dec 17, 2023 · 3 comments
Open

Comments

@aussietechexperts
Copy link

I want to show the highlighted code inline in a List. What shortcodes it supports ?

@aussietechexperts aussietechexperts changed the title How do i show the code block inline ? How do i show the code block inline or what are shortcodes ? Dec 17, 2023
@KevinBatdorf
Copy link
Owner

There's no shortcodes so you need to be able to use WP blocks. You can nest them inside any other block though. Do you have a more specific example?

@vowonderful
Copy link

KevinBatdorf, I think that aussietechexperts just like me, I noticed that the generated code of Code Block Pro works in other page constructors other than Gutenberg. For example, the generated source code can be inserted into the Brick Builder or Break dance page builder, and the code snippet will work correctly in a third-party page builder. However, to do this, you need to generate code in Gutenberg and copy its source code to another constructor, which is not very convenient for the average user. And we were trying to find a way to establish a simple connection between a third-party constructor and the Code Block Pro plugin. For example, using a custom block that will fill in the Code Block Pro shortcode with the specified parameters. Thus, the Code Block Pro plugin would work on absolutely any page builders.

@KevinBatdorf
Copy link
Owner

I have it designed to render into static content through the Gutenberg system (as you type actually). While the output might be usable (it's usable anywhere really, including in headless), I woulnd't be able to port any of the UI controls over as all of that is Gutenberg specific code.

Not sure there would be a way other than building a UI for each builder using their system. The two you mentioned also aren't open source either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants