bobbingwide / oik-css

[bw_css] shortcode for internal CSS styling
https://www.oik-plugins.com/oik-plugins/oik-css
0 stars 0 forks source link
css geshi gutenberg-blocks wordpress-plugin

oik-css

banner

Allows internal CSS styling to be included in the content of the page.

Description

For backward compatibility:

For designers, developers and documenters [bw_css] supports echoing of the custom CSS, allowing you to document the CSS you are using. For readability, the CSS is processed using the Generic Syntax Highlighter (GeSHi) processing.

If the oik base plugin is activated

Installation

  1. Upload the contents of the oik-css plugin to the `/wp-content/plugins/oik-css' directory
  2. Activate the oik-css plugin through the 'Plugins' menu in WordPress
  3. Use the CSS and GeSHi blocks within your content.

Frequently Asked Questions

What are the dependencies?

This code is no longer dependent upon the oik base plugin; it uses shared libraries. If you want to use the shortcodes then using oik v3.3.7 or higher is still recommended.

What is the syntax?

[bw_css] your CSS goes here [/bw_css]

How do I get the GeSHi output?

Either

[bw_css .] your CSS goes here[/bw_css]

or

[bw_css text="Annotation to the CSS that will follow"] your CSS goes here[/bw_css]

How do I get GeSHi output for other languages?

Use the [bw_geshi] shortcode. e.g. [bw_geshi html]<h3>[bw_css], [bw_geshi] & [bw_background]</h3><p>Cool, lazy smart shortcodes from oik-plugins.</p> [/bw_geshi]

Supported languages are:

If you want to display syntax highlighted CSS without affecting the current display use [bw_geshi css].

What version of GeSHi does oik-css use?

oik-css delivers a subset of GeSHi version 1.0.9.0, which was released in May 2017, with modifications to support PHP 7.2

Only a small selection of the languages are supported by oik-css. These are the languages primarily used by WordPress.

Screenshots

  1. CSS block example
  2. GeSHi block example
  3. [bw_css] - syntax and examples
  4. [bw_geshi] - examples
  5. oik-CSS options - available when oik is active

Upgrade Notice

2.3.1

Automatically disables automatic paragraph creation for block based themes.

Changelog

2.3.1

Further reading

If you want to read more about the oik plugins then please visit the oik plugin "OIK - OIK Information Kit"