When I try to disply some characters in NPP prompt console the accent come weird e.g.éà è for éàè, what can I do !? however, the display in console for NPP at the bottom is correct...
Yees , that's run with : notepad.runMenuCommand("Ligne", "Trier les lignes dans l'ordre lexicographique croissant") All right !
I try that :notepad.menuCommand("Édition", "Trier les lignes dans l'ordre lexicographique croissant") but fail ! How I can see the last command statement from Notepad++ ?
I don(t see in ENUM tab of the documentation where you can find Menu Edit → Line Operations → Sort Lines in Ascending / Descending Order. Because my Notepad is in French and other statement don't work... I look for that !
for me this script run in both mode when i put "Import os" at the beginning.
Ok, thank you. Number is what you want convert in number before string...
I saw inside the doc – Editor.rereplace() – a statement like that : def add_1(m): return 'Y' + str(number(m.group(1)) + 1) I don't know what do you mean by "number" ?
Ok, thank you, this is the most interactive code I ever see on NPP, magic !