![]() |
![]() |
#21 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 765
|
Good work mate. A question...Is it possible to autocomplete a keyword even if I write it in lowercase?
I cant see the functions in function list window. I have to recheck the installation. Thanks! |
![]() |
![]() |
#22 | ||
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
![]() Quote:
Thanks! I did not manage to get case insensitive autocomplete to work (yet), it might be possible but I couldn't find out how, I found people asking the same but no answers. There is an ignoreCase attribute in the autocomplete xml file but changing the value between yes and no does nothing. Let me know how the function list feature works out for you. EDIT: There is also a functionList.xml in the Notepad++ installation folder, try to add the association and parser there instead to the one in the appdata folder. |
||
![]() |
![]() |
#23 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 765
|
Ok, edited both functionlist files and now it's ok.
Thanks |
![]() |
![]() |
#24 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,377
|
|
![]() |
![]() |
#25 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
|
![]() |
![]() |
#26 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
I have managed to automate the compile process considerably (creating three command line tools in the process). If you follow these steps and it all goes well you should be able to press F5 in Notepad++ to run a batch file that reloads the source file and compiles it in Blitz Basic 2 and the WinUAE window should be brought to the front.
Setting up automation ------------------------------ Blitz basic 2 has an AREXX port so it's possible to automate it using AREXX. You can take the following steps to set things up. 1. In WinUae set serial port to TCP://0.0.0.0:1234 and select "Direct" below the drop down box. Save the WinUAE configuration and quit WinUAE, add the following to the configuration file manually (inder the other lines concerning serial): serial_translate=crlf_cr 2. Create the file DEVS:MountList on the virtual harddrive with following content (if it does not already exist) Code:
AUX: Handler = L:Aux-Handler Stacksize = 1000 Priority = 5 Code:
mount aux: newshell aux: Code:
/* blitz automation */ address TED_REXX1 SHOWSCREEN WINDOWTOFRONT ACTIVATE LOAD ARG(1) COMPILE Code:
ConvertEOL - Converts EOL characters in text files between different formats (LF / CR / CRLF) WinUAEArexx - Runs an Arexx script in WinUAE over Telnet BringToFront - Brings an application with specific window title to front Code:
cd "C:\Dropbox\Projects\Blitz Basic\NPP\blitzproject" ConvertEOL unix "blitzproject.bb2" "C:\Program Files (x86)\WinUAE\HDD\Blitz2\Projects\Test\test.bb2" WinUAEArexx blitzbasic2 1000 "WB31:Blitz2/Projects/Test/test.bb2" BringToFront "[Amiga1200Dev.uae] - WinUAE" - The ConvertEOL command is needed only if you are working on a source file with CR LF end of lines (Code folding). - The WinUAEArexx command should be supplied with the path to the source file as seen by the emulated Amiga. 1000 after the script name is how long to wait before closing the telnet connection, if closing instantly it seems that the command won't be transfered properly. - BringToFront needs the exact window title of the running WinUAE instance. Using the automation ------------------------------ 1. Start WinUAE, load your configuration and start the emulation, then run Blitz Basic 2. 2. Edit and save the Blitz Basic source file(s) in Notepad++. 3. To compile and run, press F5 and select the batch file you created in step 6 above. Blitz Basic 2 should reload and compile the source file and WinUAE should be brought to the front. |
![]() |
![]() |
#27 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
I must be doing something wrong here...
I followed your instructions and installed the n++ defs for BB2, and when I open a BB2 file, I get this output: ![]() This kind of looks like a binary file, what is going on? Maybe it is the Ultimate CD copy I have? All filenames are in all caps which seems odd. |
![]() |
![]() |
#28 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,377
|
I don't think it's intended to open BB2 files, which are tokenised files. It's for developing new files, where Notepad++ saves the source code as ASCII and lets TED/Blitz parse, tokenise and compile the ASCII file.
|
![]() |
![]() |
#29 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
Well notepad assigned itself the bb2 extension, so I don't know what I am doing here.
So how am I supposed to look at all this example "code"? Only in BB2? That kinda fucking sucks, I don't want to use TED as my IDE. What are tokenized files anyway? Sorry for all my lame questions. |
![]() |
![]() |
#30 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,377
|
Tokenised files replace keywords such as Print with two-byte sequences for quicker lookup (it'd be noticable on an A500) when compiling.
While TED is bad, it's workable if you get used to it. All Blitz code I've written has been written using it. |
![]() |
![]() |
#31 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
Well but I understood the point of this n++ user defined language is for being able to load and save BB2 files.
I'm gonna wait for the OP or someone else who uses these extensions to let me know what I am doing wrong. I really really really rather use n++ |
![]() |
![]() |
#32 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
In Blitz save the source as an ascii text file, then change the file extension to bb2 and notepad should display it..
|
![]() |
![]() |
#33 | ||
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
Quote:
Thanks to this extension for N++ I had the patience to start using Blitz Basic 2, otherwise I don't think I would have really tried, I'm too spoiled by modern editors. I didn't want to use Amiblitz because of the FPU issues etc. If I decide to make something with BB2 it would be for the classic hardware, A500 or A1200 vanilla. I suggest that you use the version without code folding (code folding does not work correctly with only LF for new lines files in N++ and BB2 can't handle files with CR/LF new lines). I have been using that version myself and have a fixed a few issues and added a few keywords since the last uploaded version. I will upload this version when I find the time. Last edited by MickGyver; 24 May 2017 at 08:06. |
||
![]() |
![]() |
#34 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Why wait, here is an updated version (no code folding). This version has added keywords, removed duplicate keywords, and some other corrections.
Last edited by MickGyver; 15 January 2018 at 14:01. Reason: Removed attachment (old version) |
![]() |
![]() |
#35 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,413
|
I know it's not quite the same, but I use the AmiBlitz 3 environment and then compile in Blitz 2.1 for compatibility with basic machines. It could certainly do with code folding and some other things, but the inline code completion, help system, struct browser etc. make it worthwhile working in that way.
I'm not familiar with the NPP plugin system - is it possible to run an executable as part of the loading/saving process? If that's the case, it could be possible to write a simple de-tokenizer that lets you load .bb2 files directly. |
![]() |
![]() |
#36 | |
Zone Friend
Join Date: Jan 2006
Location: Aussie
Posts: 1,144
|
Quote:
I have not tried it yet but I will in a few weeks. ![]() |
|
![]() |
![]() |
#37 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
YEs i am using the No Fold version, I don't want to use copy and paste. I want to edit the files in the shared WInUAE folder HD straight away.
But I thought I could open these BB2 files that I got as examples to start looking at code. I guess I have to resave them al las ASCII when I open BB2.1. Why did they do this, so annoying ;( Thanks so much for the updated definitions, I really love N++ and wouldn't use anything else. BTW step 5 on your how to says: "Go to %AppData%\Notepad++". The actual path, at least in my system (Win 7 Pro 64bit) is "%AppData%\Roaming\Notepad++". I am using a 32-bit version of n++ (is there a 64 bit version now?) |
![]() |
![]() |
#38 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I've been learning python recently so as a project I might have a go at making something to convert the bb2 file to a text file. Obviously the success will depend on the numbering of your Amigalibs and deflibs being correct
|
![]() |
![]() |
#39 | |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,377
|
Quote:
https://github.com/grovdata/pyblitz2 |
|
![]() |
![]() |
#40 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,377
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple question regarding notepad and ram.. | Dharma | support.Apps | 5 | 31 May 2015 22:03 |
Notepad++ | BippyM | Coders. Asm / Hardware | 14 | 28 August 2014 03:42 |
does VASM support a pre-defined symbol identifying itself | Apollo | Coders. Asm / Hardware | 2 | 09 December 2013 16:07 |
Faces which defined the Amiga | Tolls | Nostalgia & memories | 25 | 02 June 2011 22:02 |
BB2 development | LaundroMat | Coders. General | 10 | 01 October 2002 17:58 |
|
|