Search code examples
codeignitersyntax-highlightingnotepad++code-completioncode-folding

How to implement "CodeIgniter 2.0" code completion capabilities with Notepad++ ?


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?


Solution

  • 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 specific Plugin 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.