-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code formatting in page editor #53
Comments
What does "formatting" mean? Are you talking about the action of tagging the selected text with a button such as Either way, first check to see if it works as expected with this plugin turned off. |
Somewhere this function is called "beautify" 😃 |
This plugin does not have such functionality to begin with. |
Hi t-hamano, In all the examples of your plugin the code is always correctly indented and also in the settings I can set the indentation (Tabs or Spaces). When I write HTML code on the page editor and indent it manually, it slides back to the left side after saving (as in the screenshot in my first post). So I thought it might be possible to restore this indentation so that it looks again like in the examples. In the settings for the context menu, I found this image: Unfortunately, the entry |
This does not seem to be a problem with this plugin.
Oh, it exists in the context menu. |
Technically it is possible to implement a formatter, but I need to consider which formatter library to use. This will take some time, so remove the WP6.4 label. |
Great plugin, thanks a lot for this.
I am using WordPress 6.0.1 and have disabled the block editor.
add_filter('use_block_editor_for_post', '__return_false', 10);
Unfortunately, the formatting in the classic editor (post & pages) does not work.
Is there any way I can force this?
Greetings Kolja
edit:
I noticed that the comments are created with
//
and this file is loaded:/build/lib/monaco-editor/min/vs/basic-languages/php/php.js
Can it be that the wrong language is loaded in the page editor?
The text was updated successfully, but these errors were encountered: