🔧 Add IntelliLang.xml file to provide PHP synthax highlighting in DM XML files

This commit is contained in:
Molkobain
2022-07-20 17:48:01 +02:00
parent 1f78bf4119
commit b90d29d448
2 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@@ -38,6 +38,7 @@ test/vendor/*
# Jetbrains # Jetbrains
/.idea/** /.idea/**
!/.idea/IntelliLang.xml
# doc. generation # doc. generation
/.doc/vendor /.doc/vendor

15
.idea/IntelliLang.xml generated Normal file
View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="LanguageInjectionConfiguration">
<injection language="InjectablePHP" injector-id="xml">
<display-name>iTop - Class method code</display-name>
<place><![CDATA[xmlTag().withLocalName(string().equalTo("code"))]]></place>
<xpath-condition>name(..) = 'method' and count(/itop_design) = 1</xpath-condition>
</injection>
<injection language="InjectablePHP" injector-id="xml">
<display-name>iTop - Snippet code</display-name>
<place><![CDATA[xmlTag().withLocalName(string().equalTo("snippet"))]]></place>
<xpath-condition>name(..) = 'snippets' and count(/itop_design) = 1</xpath-condition>
</injection>
</component>
</project>