The screenshot below depicts the available settings for a raw content block. Simply enter in your code in the text area and toggle the settings as needed.
Fullscreen Editing and Syntax Highlighting
New in Blox v1.3.0 is the introduction of fullcreen editing and syntax highlighting. Simply click on the fullscreen icon in the toolbar and a modal will open up. See the screenshot below.
We understand that users have a wide preference when it comes to the styling of syntax highlighting. Therefore, two alternative dark themes are currently available. These can be set in the Blox Settings under the Misc tab. You also have the option to turn off syntax highlighting all together. The inclusion of this feature, which is powered by CodeMirror, does require additional files to be loaded in the WordPress admin. If you are not going to be using the raw content option very often, you might want to disable highlighting. Below is a screenshot of the new settings.
PHP and shortcodes are disabled by default and will need to be checked to allow for their functionality. The final option makes raw content unique from all other content types. Here you can disable all block markup. The standard raw content markup can be found on the frontend markup reference page. This option allows you to print precisely the code you have added to the frontend, and nothing else. Depending on the content you are looking to add, disabling all markup might be imperative.
?>. If not, you will likely break the frontend of your website. But don’t worry too much… You can always head back into the admin and fix/delete your code.
- Frontend Markup for raw content blocks