You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pluginDesc: 'Syntax highlighted code blocks with auto language detection, clipboard copy, dark/light mode toggle, a code block migrator from other plugins, and a read-only SQL query tool. Works as a Gutenberg block and as a [cs_code] shortcode.',
<p>The <strong>CloudScale Code Block</strong> is a Gutenberg block and shortcode for displaying syntax-highlighted code in your posts and pages.</p>
26
+
<ul>
27
+
<li><strong>Auto language detection</strong> — the plugin detects the programming language from the code content and applies appropriate syntax highlighting automatically.</li>
28
+
<li><strong>Manual language selection</strong> — override the auto-detected language from the block toolbar dropdown.</li>
29
+
<li><strong>Copy to clipboard</strong> — a copy button appears on hover, letting readers copy the full code snippet with one click.</li>
30
+
<li><strong>Dark / Light mode toggle</strong> — readers can switch the code block theme between dark and light to match their preference. The setting is remembered via localStorage.</li>
31
+
<li><strong>Line numbers</strong> — optionally display line numbers alongside the code.</li>
<p>The <strong>SQL Query Tool</strong> lets you run read-only SQL SELECT queries against your WordPress database directly from the admin — without needing phpMyAdmin or SSH access.</p>
37
+
<ul>
38
+
<li>Only <code>SELECT</code> statements are allowed — the tool blocks any query that could modify data (<code>INSERT</code>, <code>UPDATE</code>, <code>DELETE</code>, <code>DROP</code>, etc.).</li>
39
+
<li>Results are displayed in a formatted table with column headers.</li>
40
+
<li>Row count and query execution time are shown below the results.</li>
41
+
<li>Useful for quick data lookups, verifying plugin data, and debugging without leaving WordPress admin.</li>
42
+
</ul>
43
+
<p><strong>Note:</strong> this tool is only accessible to WordPress administrators.</p>`,
44
+
45
+
'migrator': `
46
+
<p>The <strong>Code Block Migrator</strong> converts code blocks from other WordPress plugins (such as Crayon Syntax Highlighter, SyntaxHighlighter Evolved, and others) to CloudScale Code Blocks in one operation.</p>
47
+
<ul>
48
+
<li><strong>Scan</strong> — finds all posts and pages containing shortcodes or HTML from supported legacy plugins.</li>
49
+
<li><strong>Preview</strong> — shows what will be converted before making any changes.</li>
50
+
<li><strong>Convert</strong> — replaces the old shortcodes/HTML with <code>[cs_code]</code> shortcodes, preserving the code content and language attribute where possible.</li>
51
+
</ul>
52
+
<p>Always take a backup before running the migrator.</p>`,
<p>Syntax highlighted code blocks with auto language detection, clipboard copy, dark/light mode toggle, a code block migrator from other plugins, and a read-only SQL query tool. Works as a Gutenberg block and as a [cs_code] shortcode.</p>
<p>The <strong>CloudScale Code Block</strong> is a Gutenberg block and shortcode for displaying syntax-highlighted code in your posts and pages.</p>
53
+
<ul>
54
+
<li><strong>Auto language detection</strong> — the plugin detects the programming language from the code content and applies appropriate syntax highlighting automatically.</li>
55
+
<li><strong>Manual language selection</strong> — override the auto-detected language from the block toolbar dropdown.</li>
56
+
<li><strong>Copy to clipboard</strong> — a copy button appears on hover, letting readers copy the full code snippet with one click.</li>
57
+
<li><strong>Dark / Light mode toggle</strong> — readers can switch the code block theme between dark and light to match their preference. The setting is remembered via localStorage.</li>
58
+
<li><strong>Line numbers</strong> — optionally display line numbers alongside the code.</li>
<p>The <strong>SQL Query Tool</strong> lets you run read-only SQL SELECT queries against your WordPress database directly from the admin — without needing phpMyAdmin or SSH access.</p>
69
+
<ul>
70
+
<li>Only <code>SELECT</code> statements are allowed — the tool blocks any query that could modify data (<code>INSERT</code>, <code>UPDATE</code>, <code>DELETE</code>, <code>DROP</code>, etc.).</li>
71
+
<li>Results are displayed in a formatted table with column headers.</li>
72
+
<li>Row count and query execution time are shown below the results.</li>
73
+
<li>Useful for quick data lookups, verifying plugin data, and debugging without leaving WordPress admin.</li>
74
+
</ul>
75
+
<p><strong>Note:</strong> this tool is only accessible to WordPress administrators.</p></div>
<p>The <strong>Code Block Migrator</strong> converts code blocks from other WordPress plugins (such as Crayon Syntax Highlighter, SyntaxHighlighter Evolved, and others) to CloudScale Code Blocks in one operation.</p>
84
+
<ul>
85
+
<li><strong>Scan</strong> — finds all posts and pages containing shortcodes or HTML from supported legacy plugins.</li>
86
+
<li><strong>Preview</strong> — shows what will be converted before making any changes.</li>
87
+
<li><strong>Convert</strong> — replaces the old shortcodes/HTML with <code>[cs_code]</code> shortcodes, preserving the code content and language attribute where possible.</li>
88
+
</ul>
89
+
<p>Always take a backup before running the migrator.</p></div>
0 commit comments