Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Get keywords (reserved words) of current lang

Help
MMTsuchi
2012-03-21
2013-01-25
  • MMTsuchi
    MMTsuchi
    2012-03-21

    Hi,
    How could I get a list of keywords used by current language of an opened document ?
    I wish to test if a given word is in the list of keywords.

    I found "editor.describeKeyWordSets()"
    It returns only 'Keywords\nOperators\nAttributes\nStandard Functions\nStandard Packages\nStandard Types\nUser Words'

     
  • Unfortunately there's no way to ask scintilla for the keyword list.  You could look it up in langs.xml though - it's not perfect as if it's just been changed (and N++ has not been restarted), then langs.xml won't reflect the real state of the keywords.

    Dave

     
  • MMTsuchi
    MMTsuchi
    2012-03-26

    Thanks for answer. I have copied/pasted those keywords in my script.