HP Forums
[UPDATE] NOTEPAD++ - now with autocomplete - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: [UPDATE] NOTEPAD++ - now with autocomplete (/thread-5332.html)

Pages: 1 2 3


[UPDATE] NOTEPAD++ - now with autocomplete - jrozsas - 12-14-2015 12:31 PM

Hello!
I noticed an interesting feature to write programs.
On the site notepad++ for hp prime I found the xml files to the HP Prime add language in Notepad ++ and It works great, (userDefineLang.XML)
[Image: Dm1Jj.jpg]
Write a program in HP Prime Editor(kit) is difficult for several reasons (find, replace, etc.).
But I missed the autocomplete function and decided to create a new XML which now contains the auto function. I do not know if it is complete but hope you perform tests and report me.
See how it looks with autocomplete:
[Image: XEUrd.jpg] [Image: 7iEMN.jpg]
I'll attach the file to copy this folder: [Image: EHM0O.jpg]
I'm sorry my English but I do not have fluency in the English language


RE: NOTEPAD++ - now with autocomplete - jrozsas - 12-14-2015 04:24 PM

Video Notepad ++ with autocomplete:





RE: NOTEPAD++ - now with autocomplete - eried - 12-14-2015 05:21 PM

Great! Does it also support calltips?
[Image: Calltip.png]


RE: NOTEPAD++ - now with autocomplete - jrozsas - 12-14-2015 05:54 PM

(12-14-2015 05:21 PM)eried Wrote:  Great! Does it also support calltips?
[Image: Calltip.png]
Yes. Needs minor changes and edit each of the lines:
[Image: ka6pJ.jpg]
[Image: WbKva.jpg]
and for each row:
[Image: bcvNv.jpg]


RE: NOTEPAD++ - now with autocomplete - jrozsas - 12-14-2015 06:02 PM

See file attached with calltip


RE: NOTEPAD++ - now with autocomplete - eried - 12-14-2015 06:18 PM

Amazing!


RE: NOTEPAD++ - now with autocomplete - compsystems - 12-14-2015 08:17 PM

I copy HPPrime.xml inside the folder
C:\Program Files (x86)\Notepad++\plugins\APIs\
and
C:\Users\<user>\AppData\Roaming\Notepad++

and to install (Language\Defined your language Dialogue\Import says
"fail to import"


RE: NOTEPAD++ - now with autocomplete - Arno K - 12-14-2015 08:55 PM

(12-14-2015 08:17 PM)compsystems Wrote:  I copy HPPrime.xml inside the folder
C:\Program Files (x86)\Notepad++\plugins\APIs\
and
C:\Users\<user>\AppData\Roaming\Notepad++

and to install (Language\Defined your language Dialogue\Import says
"fail to import"

mine too. It is v6.8.6.
Arno


RE: NOTEPAD++ - now with autocomplete - jrozsas - 12-14-2015 10:44 PM

Sorry, i don´t speak english very whell.I will translate with google.
Notice from the first post I guide that you guys should go the link http://www.hpcalc.org/details.php?id=7564
Here you guys will download a ZIP (HPLANG.ZIP) with 2 files: "HP Prime.xml" and "userdefinelang.xml"

First:You need to import this language to the notepad ++,Use the file userdefinelang.xml
Second:Download the HP Prime.XML that I CREATED file. It's another content.The "HP Prime.zip" file contains "HP Prime.xml" but it is DIFFERENT from the same file name that is in HPLANG.ZIP.
This is what contains the Autocomplete.This file is to be copied to the folder indicated.


RE: NOTEPAD++ - now with autocomplete - John P - 12-15-2015 01:11 AM

Thanks jrozsas, it works.


RE: NOTEPAD++ - now with autocomplete - Arno K - 12-15-2015 08:42 AM

Very nice. Thank you
Arno


RE: NOTEPAD++ - now with autocomplete - jrozsas - 05-06-2016 06:48 PM

Hi,
A small update on hp prime.xml
alphabetical order and some call tips
[Image: snap_215.png]


RE: NOTEPAD++ - now with autocomplete - Tugdual - 05-07-2016 07:54 AM

I suggest that this thread gets archived in the Prime library.


RE: NOTEPAD++ - now with autocomplete - jrozsas - 05-07-2016 02:16 PM

It is important that you know to edit the HPPrime.XML file, you can use the NOTEPAD++.
Following the lines that I have edited as an example, you can create the calltips for all other commands, and you can do in your language.
[Image: snap_216.png]
Note that the change occurs between the two <KeyWord>
See example:
<KeyWord name="ABS" func="yes">
<Overload retVal="" descr="Apresenta o valor absoluto da expressão ou matriz" >
<Param name="EXP matriz" />
</Overload>
</KeyWord>

See Without change:
<KeyWord name="ABS" />

Result in your program .hpprgm:
[Image: snap_217.png]
Its easy!


RE: NOTEPAD++ - now with autocomplete - jrozsas - 05-07-2016 02:24 PM

(05-07-2016 07:54 AM)Tugdual Wrote:  I suggest that this thread gets archived in the Prime library.
? Already in the library since 12-2015
http://www.hpmuseum.org/forum/thread-5334.html


RE: NOTEPAD++ - now with autocomplete - Tugdual - 05-07-2016 07:24 PM

(05-07-2016 02:24 PM)jrozsas Wrote:  
(05-07-2016 07:54 AM)Tugdual Wrote:  I suggest that this thread gets archived in the Prime library.
? Already in the library since 12-2015
http://www.hpmuseum.org/forum/thread-5334.html
Ah, my bad, I hadn't noticed it was such an old thread.


RE: NOTEPAD++ - now with autocomplete - Brad Barton - 05-21-2016 05:39 AM

I'm having trouble getting this working. I've copied the files to the C:\Program Files(x86)\Notepad++\plugins\APIs directory, but the "HP Prime" option doesn't appear in the Language menu, nor do I get autocomplete hints. Am I missing something obvious?

SOLVED: For those having the same problem, here's what worked for me.

1. Copy both of the original files (HP Prime.xml and userDefineLang.xml) downloaded from http://www.hpcalc.org to the C:\Program Files(x86)\Notepad++\plugins\APIs directory.

2. Open Notepad++ and pull down the Language menu, and select "Define your Language"

3. Click the "Import" button, and select the HP Prime.xml file from the dialog box that appears. Click OK, and you should see a message telling you that it was imported successfully. Close the User Defined Language dialog box.

4. Next pull down the Language menu. You should now see the HP Prime language option near the bottom of the menu. Select that option.

5. Close Notepad++ and then copy the newer version of HP Prime.xml (link shown in earlier post) to the C:\Program Files(x86)\Notepad++\plugins\APIs directory, over-writing the older version.

6. Restart Notepad++ and it should work as it's supposed to.

It looks like the newer version of the HP Prime.xml file doesn't want to import. I couldn't get the newer version to import successfully. I had to import the older version first, then over write the old one with the new file.

Maybe some of these steps were unnecessary, but it worked for me.

Brad


RE: NOTEPAD++ - now with autocomplete - jrozsas - 05-21-2016 12:34 PM

(05-21-2016 05:39 AM)Brad Barton Wrote:  I'm having trouble getting this working. I've copied the files to the C:\Program Files(x86)\Notepad++\plugins\APIs directory, but the "HP Prime" option doesn't appear in the Language menu, nor do I get autocomplete hints. Am I missing something obvious?

SOLVED: For those having the same problem, here's what worked for me.

1. Copy both of the original files (HP Prime.xml and userDefineLang.xml) downloaded from http://www.hpcalc.org to the C:\Program Files(x86)\Notepad++\plugins\APIs directory.

2. Open Notepad++ and pull down the Language menu, and select "Define your Language".....

Well, I believe that many did not understand a detail I explained in a previous post, which should be causing problems.
The procedure that you did, though somehow it worked, it is not correct and not the simplest.I will explain the procedure, which is very simple.

1) Note that there is a website (http://www.hpcalc.org/details.php?id=7564) where you will download a file.
This HPLANG.ZIP file contains the following:
a) HP Prime.xml
b) HPLang.gif
c) userDefineLang.xml
What we need is to import this language. To do so, in Notepad ++, click "Define your Language".
Then click button IMPORTING .
Select the file userDefineLang.xml (unzip HPLANG.ZIP)

2) Now you need to download the HP Prime.zip file. (http://www.hpmuseum.org/forum/thread-5334.html)
This HP Prime.zip file contains the following:
a) HP Prime.xml
This HP Prime.xml file is different from the file with the same name as HP Prime.xml
This HP Prime.xml copy to C:\Program Files(x86)\Notepad++\plugins\APIs




RE: NOTEPAD++ - now with autocomplete - Brad Barton - 05-22-2016 02:47 AM

Thanks Leo, it sounds like your procedure is somewhat simpler. I didn't see the earlier post regarding the details around importing.

At any rate, it is a fantastic tool, and I'm very grateful to have it to work with. Thank you for putting it together and sharing it with us.

Brad


RE: NOTEPAD++ - now with autocomplete - toml_12953 - 02-16-2017 02:16 PM

How do I get the tips? They're in the XML file but when I start to type a keyword, only a list of keywords comes up.

Tom L