تفصیل
4WP Advanced Code enhances core/code blocks and provides a dedicated Advanced Code block with syntax highlighting, copy and share controls, optional notes, and SoftwareSourceCode JSON-LD for technical content.
A plugin by 4wp.dev. 4WP is our project brand; the letters "WP” appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed, or sponsored by WordPress.
Source code: github.com/4wpdev/4wp-advanced-code
Key features
- Syntax highlighting — bundled Highlight.js (no CDN on the frontend)
- core/code wrapper — upgrade existing Code blocks without re-entering content
- Advanced Code block — per-block language, theme, copy/share, and SEO fields
- JSON-LD — optional SoftwareSourceCode structured data
- Settings — global defaults under Settings 4WP Advanced Code
Privacy
Copy and share actions run in the visitor browser. When share opens Twitter or LinkedIn, the visitor leaves your site to those third-party services. No personal data is sent to 4wp.dev.
Blocks
This plugin provides 1 block.
- Advanced Code — syntax-highlighted code with copy, share, and SEO controls.
بلاکس
یہ پلگ ان 1 بلاک مہیا کرتی ہے۔
- Advanced Code Enhanced code block with syntax highlighting, copy/share functionality, and SEO optimization.
انسٹالیشن
- Upload the plugin to
/wp-content/plugins/4wp-advanced-code/or install from the Plugins screen. - Activate 4WP Advanced Code.
- Open Settings 4WP Advanced Code to set defaults.
- Add a Code or Advanced Code block in the editor.
عمومی سوالات
-
Does this replace core/code?
-
No. Existing Code blocks keep working. When advanced features are enabled, the plugin wraps their output on the frontend.
-
Is Highlight.js loaded on every page?
-
Only on singular posts/pages that contain a Code or Advanced Code block.
-
Can I disable JSON-LD?
-
Yes — globally in Settings or per block in the block sidebar.
جائزے
There are no reviews for this plugin.
شراکت دار اور ڈیویلپرز
“4WP Advanced Code” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:
شراکت دار“4WP Advanced Code” کا اپنی زبان میں ترجمہ کریں۔
ڈویلپمینٹ میں دلچسپی ہے؟
کوڈ براؤز کریں، ایس این وی ریپوزیٹری کو چیک کریں یا ڈویلپمینٹ لاگ کو سبسکرائب کریں بذریعہ آر ایس ایس۔
چینج لاگ
1.0.1
- Review T1: upgrade bundled Highlight.js to 11.11.1; safe JSON-LD output via wp_json_encode (no script-breakout flags).
1.0.0
- First submission: core/code wrapper, Advanced Code block, bundled Highlight.js, JSON-LD, settings.
