Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Latest Active Forum Threads

  Thread Views Replies Last Post
Happy New Year Everyone!!
in Public Announcements
146 5 enzorug
01/12/2020 20:15
New Version of PortablE?
in PortablE
7730 24 amigamia
01/03/2020 14:43
AspireOS v.2.2 codename "Obitus"
in Development General
9262 6 nikos
01/03/2019 07:26
aros-exec no more.
in Site Feedback
4559 11 magorium
10/30/2018 20:39
DELL Latitude D520
in Hardware
5999 34 nikos
10/18/2018 11:57
Pfs3
in Development General
2156 1 cavemann
10/14/2018 17:50
Video Overlay
in Development General
2437 0 nikos
10/02/2018 08:34
63 posts | Last Activity on 01/03/2020 14:43 by amigamia
amigamia
amigamia 01/03/2020 14:43, 15 days ago Responded in New Version of PortablE?
Re: New Version of PortablE?
I know this is an old thread but I have been curious to know if there is any new development. On Chris' website it seems to be still at: 23.1. r6 beta - r6 beta (26.04.2016)
M
magorium 06/14/2014 16:33, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
Here is a small example in practice what goes wrong with omitted operator (in this example '=' character);

Go to the [url=http://cshandley.co.uk/portable/examples/]examples of Chris[/url] and choose Example 19: Stacker.E, and paste the source into an empty edit window.

Taking your scheme, scroll down to line 92:
"guiRefreshTask.setGhosted(watchName=NILS)"

because the = is omitted, it will not be parsed as operator. thereby also ignoring NILS as being a constant, and will not be highlighted accordingly. It really is a bug in the UDL language scheme to begin with (but at least this specific issue i can understand a little).

Of course, if that doesn't bother you then who am i to judge. But perhaps it is something you haven't considered (or ran into) yet. Unfortunately, there are (or at least seems to be) more of those little 'issues'.


One of the funniest of those 'issues' is, that since i added hexadecimal numbering recognition, the UDL parsing goes wrong whenever you use a variable which ends in a hexadecimal letter (a,b,c,d,e or f) directly followed by a number.

So, for example. when using the variable name IamAvariable2, the number 2 get's recognized as being a hexadecimal number (big oops) and only that 2 gets highlighted accordingly (big oops number 2, as it should start with the e if its being done wrong to begin with). So even in doing it wrong, the UDL does it wrong Grin
M
magorium 06/14/2014 15:54, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
Drats... that was hard to get it imported (it kept using my old scheme).

No idea what i did, but after renaming your scheme and imported, closed down several times (and started notepadd++ again), i finally managed to get it imported correctly :/

Well, like i said. i have absolutely done nothing toward the colors (merely picked something different to show). so you should be good to go in that department (whatever you favor) Grin

I've just separated the different language constructs so that _it is possible_ to change them individually. But if you don't like that, you could even choose to use the same font-style and colors to be the same for all of them (e.g. only display them all bold or purple or *whatever* :-D ).

For example, the pink strings i've used are a bit on the feminine side of things, and now curse a bit with the greenish variable types Pfft

Two words of warning though (i think):

1) You changed the language from case sensitive to no case sensitive, and afaik portablE is a case sensitive language. Meaning keywords _have_ to go in upper case. if i understood correctly, you've changed that.

2) It seems you've removed some of the operators. I've taken my queue from annotate file, but also from the examples on chris' homepage (i copy-pasted them into the editor to see what was still missing). That was reason for me to add the additional operators (as they are valid, at least in PortablE. Dunno about Amiga-E).

And *oops*, i forgot to add the extension. Good catch amigamia Smile
amigamia
amigamia 06/14/2014 12:06, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
I made a small change to add some coloring, etc. etc. Take a a look and let me know what do you think.

[code]






00-> 01 02 03/* 04*/

$

$ABCDEFabcdef



: , + - * / ++ -- !! := == != / < = > <= >=

PROC

ENDPROC






ABSTRACT ARRAY BUT CALLBACK CASE CLASS CLASSTYPE CONST DEFAULT DEF DO ELSE ELSEIF EMPTY END ENDCLASS ENDFOR ENDFUNC ENDIF ENDOBJECT ENDPROC ENDSELECT ENDWHILE ENUM EXPORT FINALLY FOR FUNC IF INLINE IMPLEMENTS IS LARGE LIST LOOP MODULE NATIVE NEW NOPTRTOCHAR OBJECT OF OPT OPTIMISE ORPHAN OSVERSION PREPROCESS PROC PRIVATE PROTECTED PROTOTYPE PUBLIC RAISE REPEAT REPLACEMENT RETURN RETURNS SELECT SET SIZEOF STATIC STEP SUPER THEN MULTITHREADED TO TYPEOF UNGENERIC UNTIL VOID WHILE
BOOL BIGVALUE BYTE CHAR FLOAT ILIST INT LONG POINTER PTR QUAD STRING VALUE
ALL FALSE NIL NILA NILS TRUE
AND NOT OR SHL SHR XOR




00' 01\ 02' 03" 04\ 05" 06( 07 08) 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23





























[/code]
M
magorium 06/13/2014 22:24, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
Well, this should be doable for syntax highlighting setting for notepad++ (just taken from annotate. plus some additional stuff added and separated in order to be able to use several styles).

please note that the colours itself are completely useless. It was merely meant to show the differences in highlighting. At least you should be able to 'simply' change the colours/fonts to your personal preferences.

And no, the wrongly colored items are not my fault, the UDL language used for syntax highlighting is faulty by design and will never work correctly :P

As far as i understood my exported file (that is pasted here) should be possible to import in the user-defined options of notepad++.

Now, hopefully this board doesn't eat up all the special characters used in the config file :/

[code]







00-> 01 02 03/* 04*/

$

$ABCDEFabcdef



: , + - * / ++ -- !! := == != / < = > <= >=

PROC

ENDPROC






ABSTRACT ARRAY BUT CALLBACK CASE CLASS CLASSTYPE CONST DEFAULT DEF DO ELSE ELSEIF EMPTY END ENDCLASS ENDFOR ENDFUNC ENDIF ENDOBJECT ENDPROC ENDSELECT ENDWHILE ENUM EXPORT FINALLY FOR FUNC IF INLINE IMPLEMENTS IS LARGE LIST LOOP MODULE NATIVE NEW NOPTRTOCHAR OBJECT OF OPT OPTIMISE ORPHAN OSVERSION PREPROCESS PROC PRIVATE PROTECTED PROTOTYPE PUBLIC RAISE REPEAT REPLACEMENT RETURN RETURNS SELECT SET SIZEOF STATIC STEP SUPER THEN MULTITHREADED TO TYPEOF UNGENERIC UNTIL VOID WHILE
BOOL BIGVALUE BYTE CHAR FLOAT ILIST INT LONG POINTER PTR QUAD STRING VALUE
ALL FALSE NIL NILA NILS TRUE
AND NOT OR SHL SHR XOR




00' 01\ 02' 03" 04\ 05" 06( 07 08) 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23






























[/code]


- folding on proc/endproc
- line comment on "->"
- multiline comment on "/*" with ending "*/"
- used about any _separator_ character as being an operator, otherwise highlighting would fail altogether.
- *sick* added ( ) as delimeter style (otherwise nothing between those would be highlighted correctly).
- added hexadecimal numbers (but i think i did something wrong there, alas docs not conclusive).
- KW 1: generic language constructs (plus some special)
- KW 2: types
- KW 3: constants
- KW 4: and/or operators (because i hate using same color as normal operators).

I have no idea how it would be possible to add preprocessor highlighting (the option simply seems non existent). possibly solvable by adding another set of keyword (including preprocessor initiator character "#").

hopefully enjoy ! :)
M
magorium 06/13/2014 21:21, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
No, i perhaps didn't have to Pfft

But as i said, if that is what is most comfortable for you then why not.

btw: it is possible to add a run command (using a specific shortcut to run pegcc compiler) using notepad++ if you want. I'll export my config and try paste it here when finished.

Cool that you managed to setup grub correctly. i'll await the pictures patiently Grin

Correct, the broadcom chips are a bit of a hassle. i also havne't got wireless working under AROS (but i don't mind as there is too much interference in this building anyway. I've setup a special antenna to blast away every wireless setop box in the neighborhood Shock but that causes issues with the neighbours sometimes Grin ).

I also use the cardreader to install aros to and boot from it... nice little machines those forst atoms things Grin

I do not completely understand the swapping bits (for downloading). You could use your cardreader for that , but also an usb pendrive.

But better is to a seperate 'swap' partition for that as it is easier. In case you want to avoid that altogether then you might want to consider making your own custom icaros setup running it hosted using ElementalOS. It just behaves like a 'normal' linux program and ofcourse adds all the extras from your linux distro. (i am currently looking at running aros using amipup as host os).


The scite setup is a bit of a steep learning curve but doable.

I use the compact scite version (600k all in one .exe) and added the language properties manually.

In my SciteGlobal.properties i've imported (using import command) my (for my personal case) pascal properties located in /lexers/pascal.properties.

in that pascal.properties definition file i've added the line "command.compile.*.pas=D:\WinDev\FPC271\Bin\i386-win32\fpc -TAros "$(FilePath)"" (without the outer quotes)

which i hope is pretty self-explainatory (in case it isn't then feel free to ask).

And at this point, my memory seems to abandon me... i seem to remember having to make an extra option to be able to make it all work from the menu (including shortcut), but i wasn't able to locate it so quickly. Maybe i'm remembering wrongly :/

Just try my suggested line (wherever you've stored your portablE properties) and feel free to report back in case it wasn't enough to make it all work.
amigamia
amigamia 06/13/2014 20:34, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
Hey Magorium! My goodness, you didn't have to use notepad++ lol. I use it for day to day basic text editing. I like it because it comes with a few handy plugins for text manipulation. I truly haven't used it for any language editing. I actually am looking at Scite right now as it seems a lot simpler but yet powerful. I like the fact that I can run Compile from the editor but I struggled to find how to configure that. Let's keep that winning horse shall we? Grin

BTW, I copied the AROS Boot files in the boot folder under linux, Added the lines in the grub config according to AspireOS page, rebooted, selected Icaros and voila'! I have an almost fully working icaros netbook (will take some pics soon..).

I say almost because my wireless doesn't work. I looked around and there seems to be no drivers for it. It's a broadcom BCM4312. So for the mean time I am bound to the Ethernet umbilical cord or use the Linux side to download, and use the SD-Card as a shared storage Wink
M
magorium 06/13/2014 17:07, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
My grandmother used to say "never change a winning horse" Grin

So, if it's notepad++ you fancy then by all means stick with it. Especially environments where you spend a lot of time in/with should be as comfortable to you as possible.

It's why i fancy editors where it's possible to manipulate each tiny little tidbit (and loads of the programming editors out there lack that :/).

Well, scite is the example project of Scintilla... sounds familair ?
(it's the same editing component notepad++ uses) Pfft

The reason why i sometime choose scite over something else, is that at the moment you start programming in multiple programming languages, you have to go to all kind of hoops to get the compiler (settings) working as you like. I then use scite to make a programming language specific setup for each language (each in it's own directory to avoid the hoops).

atm i am struggling to find out the complete list of keywords of portablE as the annotate configuration uses some 'magic' to highlight some things automagically (and without revealing which complete keywords belong to it).



PS:
Oh, and i found an annoying bug in notepad++ (or my misinterpretation of things). Whenever a keyword is preceded by a seperator (e.g. ":") the keyword is not highlighted. I haven't found a good solution for that yet (as i find using the prefix thing a bit overkill for that).



PPS:
aaargh...forget it.

i just finished reading the UDL v2.0 specification. And boy... that's faulty as hell by description :@

As a result of that, it isn't possible at all with notepad++ to get perfect syntax highlighting working.. at least not for a programming language like portablE (and there a lot more difficult-to-highlight languages out there).

The best i can do for now is use the ":" character as a operator (which technically speaking is wrong) but even then problems arises. Not to mention that you get the same highlighting style for the ":" char as your real operators (which i personally find annoying).

imho all the different operators (e.g. assignment operators, comparison operators , etc.) should all have their own separate style(s) and/or flow rules).

The other solution (s/w)hould be to use a delimiter definition, but alas that also fails as it _always_ expect a closing delimiter (which makes it _not_ a delimiting character, so why it is called that way is beyond me).

Also it seems there is no support for multiple comments (e.g. i do not seem to be able to add the { } comment style as extra possibility besides the usual /* */ pair).

At least i was able to split all the different keywords into several boxes (that's what i consider a plus for notepad++). That way you can e.g. seperate the real language construct from the constants, types, additional constructs, etc (so that they all can have their own individual style).

Next would be the numbers. That seems a bit more difficult and frankly speaking i have absolutely no idea what number systems portablE supports (so i have to read the manual for that Grin ).
amigamia
amigamia 06/13/2014 14:10, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
I am a big fan of notepad++. It is quite powerful and easy to install. Lightweight and it has a Syntax Highlighting editor built-in. I have never used SciTE but it does have a built-in option to compile/build etc. I am going to try it but I already am trying to construct a PortalE Language file. I'll share as soon as I have some to show.. :-) Thanks Mag, As always!
M
magorium 06/13/2014 11:34, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
Ah, the story of the elementaryOS machine continues :p

If not mistaken then i've pointed towards the wikibook for the linux parts (as it is not really my cup-a-tea) or look for people running into the same issues (that you run into as well) and that were discussed on ae forums.


Yeah, please feel free to report back (in any case), i might not have the answers myself, but perhaps can point towards the right direction.


I am not aware of any syntax highlighted editor out there for windows that has a (ready made) config file for amigaE and/or portablE.

And as you might have guessed, searching for those is a bit of a pita (usually turns up editors that can be installed portable Grin ).


Tell you what. You pick the editor and we simply figure out together what to do to make it work. Albeit, i hope you don't mind that i won't install overkill editors like eclipse (only for the sake of figuring out the syntax highlight config).

As already expressed, i usually end up using programmer's notepad and/or scite.


fwiw: Each editor has it's own pros and cons, but i would suggest to pay extra attention to the parts that (can) configures the compiler and/or show compiler output (catch errors on correct source lines by clicking). For me, those are the parts i am most interrested in as that simply has to work (or otherwise is a pita).


Sometimes it's difficult to add an additional syntax, other times it's easy a 1,2,3.

You can start with the annotate xml syntax description to get some hints. Be aware though that some editors out there could have difficulty making the (automatic) distinction between amiga-E and portablE (as that detection/config is pretty specific towards annotate).

And... instead of making this long post it probably should have been easier/quicker to just create a syntax config for notepad++, but i am not sure that editor is what you like to want to use in the end :/
amigamia
amigamia 06/13/2014 10:18, 6 years ago Responded in New Version of PortablE?
Re: New Version of PortablE?
Thanks for all the excellent tips Magorium! I managed to install ICAROS 1.5.2 from the USB stick onto the available (non partitioned) disk space on the my HP Mini. I currently have ElementaryOS installed on a secondary partition. I updated the group config but I forgot to copy the aros boot files on the boot folder under linux. That is where I stopped but I will continue that later.. Will let you know...

Additional question: Is there any PortablE Syntax Highlighting available for any editor in Windows? Notepad++ seems a good candicate for that.
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Moderator: Administrator

Blog Archive

No Blogs has been posted yet

Sign In

Not a member yet? Click here to register.

Users Online Now

Guests Online 5

Members Online 0


Total Members: 155
Newest Member: enzorug
Memory used: 5.06MB/6MB