package com.jetbrains.python.documentation.doctest;

import com.intellij.lang.InjectableLanguage;
import com.intellij.lang.Language;
import com.jetbrains.python.PythonLanguage;

/**
 * User : ktisha
 */
public class PyDocstringLanguageDialect extends Language implements InjectableLanguage {
  public static PyDocstringLanguageDialect getInstance() {
    return (PyDocstringLanguageDialect)PyDocstringFileType.INSTANCE.getLanguage();
  }

  protected PyDocstringLanguageDialect() {
    super(PythonLanguage.getInstance(), "PyDocstring");
  }
}

@@ -46,16 +46,80 @@
 ctest;%0A%0A
+import com.intellij.codeInsight.intention.impl.QuickEditAction;%0A
 import c
@@ -595,14 +595,77 @@
 ring%22);%0A
+    putUserData(QuickEditAction.EDIT_ACTION_AVAILABLE, false);%0A
   %7D%0A%7D%0A

Edit injection language fragment action is not available for Python Docstring language