Search code examples
sublimetext3sublimetextsublime-text-plugin

Is there any method/function in the sublime or sublime_plugin module that can return what programming language is being used


i'm trying to build a plugin for sublime and want to know the programming language being used by the user in their current working file. Thanks


Solution

  • From looking at the API Reference there's a view.settings().get('syntax') that would give you the syntax or language.