Skip to content

Instantly share code, notes, and snippets.

@AllenJB
Created October 11, 2025 18:41
Show Gist options
  • Select an option

  • Save AllenJB/ddb2fb55da0ffa6da095d8f146b3c21d to your computer and use it in GitHub Desktop.

Select an option

Save AllenJB/ddb2fb55da0ffa6da095d8f146b3c21d to your computer and use it in GitHub Desktop.
PHP Docs + PHPStorm

  • Place cursor over CDATA block inside a <programlisting> and Alt-Enter
  • You should see option for language injection
    • Select PHP
    • Now all CDATA blocks inside <programlisting> will be considered PHP by default!
    • To configure further (or disable), place cursor anywhere inside the CDATA and press Alt+Enter and select "language injection settings"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment