QScintilla/Lexers/__init__.py

branch
APIs
changeset 5358
2584d0a08bf4
parent 5068
3a5e58eeb64a
child 5389
9b1c800daff3
--- a/QScintilla/Lexers/__init__.py	Thu Dec 01 19:22:06 2016 +0100
+++ b/QScintilla/Lexers/__init__.py	Sat Dec 03 15:05:49 2016 +0100
@@ -174,6 +174,17 @@
     return supportedLanguages
 
 
+def getSupportedApiLanguages():
+    """
+    Module function to get a list of supported API languages.
+    
+    @return list of supported API languages
+    @rtype list of str
+    """
+    return [lang for lang in getSupportedLanguages().keys()
+            if lang != "Guessed" and not lang.startswith("Pygments|")]
+
+
 def getLanguageIcon(language, pixmap):
     """
     Module function to get an icon for a language.

eric ide

mercurial