Skip to content
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 Editor gets context aware and when opened reveals markup corresponding to currently selected block #49310

Closed
porg opened this issue Mar 23, 2023 · 5 comments
Labels
[Feature] Code Editor Handling the code view of the editing experience [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.

Comments

@porg
Copy link

porg commented Mar 23, 2023

Current situation

Edit as HTML β€” πŸ‘ Shows markup for the selected block directly on canvas

Block.Editor.1.Edit.as.HTML.mp4

Code Editor ⇧ βŒ₯ ⌘ M β€” πŸ‘Ž Currently not context aware β€” Always opens on top

Block.Editor.2.Code.Editor.currently.not.context.aware.mp4

Proposal: πŸ’‘ Code Editor gets context aware!

  • If there is/are a currently selected block(s)
  • Triggering the Code editor via:
    • block context menu
    • global more menu
    • shortcut (⇧ βŒ₯ ⌘ M)
  • Opens the Code Editor and highlights the relevant markup (all lines or start of block)
Block.Editor.3.Code.Editor.gets.context.aware.and.reveals.markup.corresponding.to.currently.selected.block.mp4
@carolinan carolinan added [Feature] Code Editor Handling the code view of the editing experience [Type] Enhancement A suggestion for improvement. labels Mar 25, 2023
@carolinan
Copy link
Contributor

I would love this feature, it would save me a lot of time when editing my content. The code editor view can sometimes be overwhelming to scroll through and it is not always easy to locate the block you want to edit.

@porg
Copy link
Author

porg commented Apr 19, 2023

Until that feature gets implemented (if ever)

Block Editor Syntax Highlighting from plugin EditorsKit

@Mamaduka
Copy link
Member

Thank you, @porg.

I think this might be a duplicate of #26738.

A general discussion regarding the syntax highlighting - #10423, #17017.

@Mamaduka Mamaduka added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Jul 18, 2023
@porg
Copy link
Author

porg commented Jul 18, 2023

@porg porg closed this as completed Jul 18, 2023
@Mamaduka
Copy link
Member

Thanks again for contributing, @porg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Code Editor Handling the code view of the editing experience [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants