javascript - CodeMirror autocomplete: Case In Sensitive Search -


i'm using codemirror autocomplete in python mode (python-hint.js). i've customized keyword list adding list. raises case sensitive issue not retrieving capital keywords when providing keyword in small letter. please make changes in python-hint.js file make search case in sensitive. or suggestion appreciated.

you can implement case-insensitive autocomplete feature adding following lines in python-hint.js -> function maybeadd(str)

 function maybeadd(str) {    start=start.tolowercase();    str=str.tolowercase();  //existing code    } 

ps : though it's highly recommended not change library files,as might create problem when updating version.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -