Notepad ++ Associated custom ext for using ctags

I use the .pkb and pkh extensions for PL / SQL files (and not .sql). I already linked the .pkb and .pkh extension in langs.xml (Styler Config) so that Notepad ++ recognizes syntax highlighting when I open pkb and pkh files (the syntax highlighting will be the same as for sql ext). Now the problem is that I cannot use plugins that parse the code using ctags (e.g. SourceCookifier, OpenCtag, GtagSearch), because these plugins do not recognize the pkb and pkh extension. The only way I could use them is to change the file to sql and, if that happens, change to pkh or pkb ext.

Is there any configuration that could make the ctags plugin work with non-sql ext? I tried to change various settings for plugins, but could not get them to work.

Thank.

+3
source share
2 answers

SourceCookifier has the ability to associate new file extensions with any of the predefined languages.

Menu Plugins → SourceCookifier → Language Settings. Select SQL from the drop-down list and add .pkb and .pkh to the second column.

+1
source

Use NppCCompletionPlugin for Notepad ++. (version 1.17 or higher)

Then change the NppCCompletionPlugin.ini settings file to:

--fields=-afiklmnSzt+sK --c-kinds=+lp --langmap=sql:+.pkb --langmap=sql:+.pkh --excmd=number -f`

Then restore the tag files.

0
source

Source: https://habr.com/ru/post/1735248/


All Articles