Περιγραφή
Το “Highlighting Code Block” σας επιτρέπει να προσθέσετε ένα μπλοκ κώδικα με επισήμανση σύνταξης με ένα μόνο κλικ.
It supports both “Block Editor” and “Classic Editor”.
(However, we recommend using it in the “Block Editor”.)
Παρακαλούμε δείτε αυτή τη σελίδα για μια λεπτομερή περιγραφή αυτού του plugin. (Ιαπωνικό άρθρο)
Πως χρησιμοποιείτε (για τον συντάκτη μπλοκ)
- Open the “Formatting” category of the Block Inserter.
- There is a custom block named “Highlighing Code Block”.
- Select it, the block will be inserted.
- Select the language of the code and enter any code.
Πως χρησιμοποιείτε (για τον κλασικό συντάκτη)
- You should see a select box labeled “Code Block” on the toolbar (2nd row by default).
- When you select a language from the select box, a code block (pre tag) is inserted.
Αν δεν δουλέψει
Αυτό το πρόσθετο λειτουργεί μόνο με έκδοση PHP 5.6 ή νεότερη, WordPress 5.0 ή νεότερο.
Παρακαλούμε ελέγξτε την έκδοση PHP σας και την έκδοση WordPress.
Πληροφορίες για τις ρυθμίσεις
The menu “CODE BLOCK” should be added to “Settings” in the left menu of the management screen.
Settings related to this plugin are set in this menu.
Στιγμιότυπα
Μπλοκ
This plugin provides 1 block.
- Highlighing Code Block
Εγκατάσταση
Το πρόσθετο μπορεί να εγκατασταθεί απευθείας από τον ιστότοπο σας.
- Συνδεθείτε και πλοηγηθείτε στο “Πρόσθετα” → “Προσθήκη νέου”.
- Πληκτρολογείστε “Highlighting Code Block” στο πεδίο αναζήτησης και πατήστε Enter.
- Εντοπίστε το πρόσθετο στη λίστα των αποτελεσμάτων αναζήτησης και κάντε κλικ στο “Εγκατάσταση”.
- Μόλις εγκατασταθεί πατήστε το κουμπί “Ενεργοποίηση”.
Συχνές Ερωτήσεις
-
Διαθέσιμες γλώσσες
-
Οι ακόλουθες γλώσσες είναι διαθέσιμες από προεπιλογή.
- HTML
- CSS
- SCSS
- JavaScript
- TypeScript
- PHP
- Ruby
- Python
- Swift
- C
- C#
- C++
- Objective-C
- SQL
- JSON
- Bash
- Git
Κριτικές
Συνεισφέροντες & Προγραμματιστές
“Highlighting Code Block” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.
Συντελεστές“Highlighting Code Block” έχει μεταφραστεί σε 2 γλώσσες. Thank you to the translators for their contributions.
Μεταφράστε το “Highlighting Code Block” στην γλώσσα σας.
Interested in development?
Περιηγηθείτε στον κώδικα , ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών μέσω RSS .
Σύνοψη αλλαγών
1.2.8
- Support for WordPress 5.7.
- Fixed spelling mistakes. (“plane” to “plain”)
- Code fixes.
1.2.7
- Added copy button function.
- Code refactoring.
- Υποστήριξη για WordPress 5.6.
1.2.6
Fixed file icon 404 error.
1.2.5
- Made the code lighter.
- Changed handle name of CSS and JS.
1.2.4
Fixed register block.
1.2.3
Διόρθωση αρχείου block.json.
1.2.2
- Adjustments for registering “block libraries”.
- Abolished the block width adjustment function.
- Abolished the ability to remove “br” tag from the “code” tag.
1.2.1
Change the code to register the script.
1.2.0
- Fixed a bug that CSS cannot be read depending on the server.
- It is now possible to set whether to display the language name for each block.
- Even if the language name is set to hidden, it will be displayed if the file name is entered.
- You can now preview the display of language names and file names in the block editor.
1.1.0
Διόρθωση αρχείου μετάφρασης.
1.0.9
Διόρθωση αρχείου μετάφρασης.
1.0.8
Υποστήριξη Αγγλικών.
1.0.7
- Συμβατό με WordPress5.3.
- Διαγράφηκαν τα αριστερά και δεξιά περιθώρια του μπλοκ κώδικα του HCB.
- Enabled conversion with core “source code block”.
1.0.6
- Compress CSS file to read.
- Changed to load some CSS with style tag in head.
- Fixed a bug that font family settings were not reflected.
- Code cleanup for CSS and JS
1.0.5
- Move reading script to wp_footer.
- Changed HCB block logo.
- You can now set font-family for code blocks.
1.0.4
- Αλλάχθηκε το font-family του μπλοκ κώδικα.
- Αλλάχθηκε το font-family του μπλοκ κώδικα.
- The file name can be set to the code block.
1.0.3
Υποστήριξη για WordPress 5.1.1
1.0.2
Αλλαγή readme.txt
1.0.1
Διαγραφή σχολίου.
1.0
Αρχική έκδοση.