I wanna a "Smart Indent" plu...

windgone
2012-08-29
2012-11-13
  • windgone
    windgone
    2012-08-29

    the smart indent just is not the auto-indent.the smart indent is like this:
    if i typed

    function name() {i}
    

    ,and my input point is at the 'i' position(between {}),and now i push the "Enter" key,i hope the code will like this:

    function name() {
        i
    }
    


    and also my input point is at the 'i' position.so i can input my code quickly.some other {} like in css or when the input point is between a html tag (<div>i</div>),i want it can 'smart indent' like this too.
    but i can't find the NPP has this method…Is it have some plugin for this? anybody can help me?

     
  • cchris
    cchris
    2012-09-16

    N++ doesn't support such smart, language dependent indent methods because of the performance overhead of real-time listening and because the method is language dependent.
    You could try using something cruder, and then get a nice indenting using for instance the UiGui plugin.

    CChris