Title: Light Code Block
Author: Pavel
Published: <strong>17 jūnijs, 2025</strong>
Last modified: 27 decembris, 2025

---

Meklēt spraudņus

![](https://ps.w.org/light-code-block/assets/banner-772x250.png?rev=3313460)

![](https://ps.w.org/light-code-block/assets/icon-256x256.png?rev=3313460)

# Light Code Block

 Autors [Pavel](https://profiles.wordpress.org/plance/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/light-code-block.1.0.2.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/light-code-block/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/light-code-block/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/light-code-block/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/light-code-block/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/light-code-block/)

## Apraksts

The “Light Code Block” plugin is a simple and lightweight solution for inserting
and displaying code snippets in posts and pages.
 It works by adding a custom “LC”
button to the TinyMCE (Classic) editor or a code block in the Gutenberg editor.

The inserted code will be shown on the front end in a clean, readable format.

### Usage

 * Install and activate the plugin.
 * Go to the post or page edit screen.
 * In the TinyMCE (Classic) editor, click the **“LC”** button in the toolbar.
 * In the popup window that opens, paste or write your code, and click **OK**.
 * Save or update your post.

The code will be saved inside a special block and displayed on the front end within
a `<pre>` tag with the class `mce-simple-code-block` (i.e., `<pre class="mce-simple-
code-block">...</pre>`).

To insert code using the Gutenberg editor, you first need to add a Classic (TinyMCE)
block, and then use it to insert your code.

## Ekrānuzņēmumi

[⌊The "LC" button in the Classic editor toolbar.⌉⌊The "LC" button in the Classic
editor toolbar.⌉[

The “LC” button in the Classic editor toolbar.

[⌊Popup window for inserting/editing code (Classic version).⌉⌊Popup window for inserting/
editing code (Classic version).⌉[

Popup window for inserting/editing code (Classic version).

[⌊Popup window for inserting/editing code (Gutenberg version).⌉⌊Popup window for
inserting/editing code (Gutenberg version).⌉[

Popup window for inserting/editing code (Gutenberg version).

[⌊Example of a rendered code block on the front end.⌉⌊Example of a rendered code
block on the front end.⌉[

Example of a rendered code block on the front end.

## Uzstādīšana

 1. Install the “Light Code Block” plugin through the standard WordPress plugin installer.
 2. Or unzip and upload the “light-code-block” folder to the `/wp-content/plugins/`
    directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Light Code Block” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi
cilvēki.

Līdzdalībnieki

 *   [ Pavel ](https://profiles.wordpress.org/plance/)

“Light Code Block” ir tulkots lokalizācijā 1. Paldies [tulkotājiem](https://translate.wordpress.org/projects/wp-plugins/light-code-block/contributors)
par ieguldījumu.

[Tulkot “Light Code Block&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/light-code-block)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/light-code-block/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/light-code-block/)vai
abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/light-code-block/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/light-code-block/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 1.0.2

 * Tested up to WordPress 6.9

#### 1.0.1

 * For backward compatibility, the class “mce-simple-block-code” has been added.

#### 1.0.0

 * Init release.

## Meta

 *  Versija **1.0.2**
 *  Pēdējo reizi atjaunots: **pirms 7 mēnešiem**
 *  Aktīvās instalācijas: **Mazāk par 10**
 *  WordPress versija ** 6.0 vai jaunāka **
 *  Pārbaudīts līdz: **6.9.4**
 *  Valodas
 * [English (US)](https://wordpress.org/plugins/light-code-block/) un [Russian](https://ru.wordpress.org/plugins/light-code-block/).
 *  [Tulkojiet savā valodā](https://translate.wordpress.org/projects/wp-plugins/light-code-block)
 * Birkas:
 * [code](https://lv.wordpress.org/plugins/tags/code/)[editor](https://lv.wordpress.org/plugins/tags/editor/)
   [source](https://lv.wordpress.org/plugins/tags/source/)[sourcecode](https://lv.wordpress.org/plugins/tags/sourcecode/)
   [syntax highlighting](https://lv.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/light-code-block/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

[Your review](https://wordpress.org/support/plugin/light-code-block/reviews/#new-post)

[Skatīt visas atsauksmes](https://wordpress.org/support/plugin/light-code-block/reviews/)

## Līdzdalībnieki

 *   [ Pavel ](https://profiles.wordpress.org/plance/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/light-code-block/)