How to implement “CodeIgniter 2.0” code completion capabilities with Notepad++ ?
-
14-04-2021 - |
Вопрос
How could I make Notepad++ have an intellisense for CodeIgniter 2.0 so that if I press Ctrl + SpaceBar on the keyboard code suggestions would be shown?
Решение
Here are the steps:
- Use a
User Defined Language
derived from the PHP language given that Code Igniter is a PHP Framework. - If you want more advanced features and feel comfortable at coding,
External Lexer
is the way to go. It's a kind of specificPlugin
mimicking built-in languages features. Install it.
Autocompletion is language based and has distinct API files for each language.
Notepad++ offers two types of auto completion:
- Function Completion (providing a hint based on a list of well known keywords)
- Word Completion (providing hint on words retrieved from the current file)
To trigger them, you must respectively select:
Edit->Auto-Completion->Function Completion
Edit->Auto-Completion->Word Completion
Notepad++ development community is a vibrant one, hopefully you find relevant indepth materials on the web.
Другие советы
Here is a link that should explain everything you need to know to make your own user defined language wiki
And Here is a list of user defined languages repository of user created languages
Не связан с StackOverflow