Is it possible to make PyCharm enforce code style for files that have other languages embedded?

I use a system with a scripting language, called Draconic, that has embedded Python, marked by start and end blocks, in an inline and multiline form

echo Here is my calculation: {{2+2}} (inline form)
Here is my for loop: <drac2>
out = []
for i in range(10):
out.append(i**2)
</drac2> (multiline form)

Is it possible to have PyCharm enforce Python code style and inspection within the defined blocks?

(I already have a textmate language definition for proper Python highlighting within the blocks)

0
Avatar
Antonina Belianskaya

Hello, 

 

Unfortunately, no. 

 

You are welcome to submit a feature request at https://youtrack.jetbrains.com/issues/PY

Information on how to use YouTrack: https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications

0

请先登录再写评论。