Debugging YAML Injection

Demo plugin, which injects the shell script language into each line of a YAML block scalar.

./gradlew runIde
  1. Create a new yaml file "test.yml"
  2. Paste this content:
run: |-
echo line one
echo line two
echo line three
  1. Choose "Edit shell script fragment" from the context menu
  2. The fragment is displayed incorrectly
  3. Editing the fragment breaks the source