Skip to content

How can call python in snippet? #1469

Open
@hwypengsir

Description

@hwypengsir

I want to expand ptest into welcome python in file ending with html,add lines in html.snippets(located in vim-snippets/UltiSnips):

snippet ptest
!p print("welcome python")
endsnippet

ptest expand into !p print("welcome python"),i rewrite the snippet as below then:

snippet ptest
`!p print("welcome python")`
endsnippet

ptest expand into nothing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions