Skip to content

Add support for executing only the currently selected code#224

Open
rst10124492 wants to merge 1 commit into
tweakphp:mainfrom
rst10124492:execute_selection
Open

Add support for executing only the currently selected code#224
rst10124492 wants to merge 1 commit into
tweakphp:mainfrom
rst10124492:execute_selection

Conversation

@rst10124492

Copy link
Copy Markdown

Before this, running code always executed the entire editor contents. After this, execution checks whether the user has selected text in the editor:

  • if text is selected, only that selected PHP code is executed
  • if nothing is selected, the full code is executed as before

…ne exists, falling back to the full buffer otherwise
@saeedvaziry

Copy link
Copy Markdown
Member

Yeah this makes more sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants