Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:38 29 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMEdit - colour syntax and LOC command...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 01:51pm 19 Mar 2014
Copy link to clipboard 
Print this post

Is it just me, or is the colour syntax and colour missing from any LOC command?

Any time I use it, everything after the LOC command is just lower-case black.
The LOC command itself is capitalized and blue, but anything after that...

Example:

IF LOC(#2)<>0 then FlagNET=1

...or...

Q=LOC(#2)/21

I would have expected the THEN in blue and capitals for the first example, and the 21 in red for the bottom example.Edited by Grogster 2014-03-20
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 04:03pm 19 Mar 2014
Copy link to clipboard 
Print this post

Its not LOC that's the problem, its the hash "#"

The code I use for highlighting (scintilla) wants to treat the "#" as a type of comment marker so it stops formatting for the rest of the line.

This is because I have started with code rules for another language and modified where possible for MM Basic.

Try this:
IF "#" THEN ' OK here because it's in quotes
IF # THEN ' not happy

I have had more luck with MMEdit2 and it doesn't have the same problem even though we are using the same scintilla control.

Having a weeks holiday so will not be able to have a look at it 'til I get back. (I might be able to smuggle a uMite into the bag)

Jim
VK7JH
MMedit   MMBasic Help
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 04:08pm 19 Mar 2014
Copy link to clipboard 
Print this post

Don't risk it Jim - hang on to any brownie points you have!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 04:39pm 19 Mar 2014
Copy link to clipboard 
Print this post

I was not complaining - please let me be very clear on that - I was just wondering why it was happening. Still downloads to the MM and runs just fine, so it was not worrying me, just making me curious.

As paceman says, and paraphrasing him for a moment, don't let it worry you. Once the final of MMEdit2 comes out, I guess it will then be a non-issue.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 04:57pm 19 Mar 2014
Copy link to clipboard 
Print this post

  Grogster said   I was not complaining - please let me be very clear on that - I was just wondering why it was happening. Still downloads to the MM and runs just fine, so it was not worrying me, just making me curious.

As paceman says, and paraphrasing him for a moment, don't let it worry you. Once the final of MMEdit2 comes out, I guess it will then be a non-issue.


I didn't take it as a complaint.

Without feedback, MMEdit wouldn't be as useful as it is.
We all use programs slightly differently so I NEED feedback.
This happened to be one problem that I found by myself and had a brief look at a week ago.

MMEdit2 will have it's own set of issues to resolve!

Jim
VK7JH
MMedit   MMBasic Help
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 08:16pm 19 Mar 2014
Copy link to clipboard 
Print this post

It never ends, this "Excrement"!!!!


(in that every time you make a new version of something, there are MORE bugs to chase down an squash)Edited by Grogster 2014-03-21
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 09:06pm 23 Mar 2014
Copy link to clipboard 
Print this post

Just an update - when I loaded up MMEdit2 version 0.9, ALL the colour syntax is correct - the user-defined subs(normally black) are correctly capitalized in purple, and the syntax after the LOC command is also correct.



Smoke makes things work. When the smoke gets out, it stops!
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 12:10am 24 Mar 2014
Copy link to clipboard 
Print this post

Pretty damn good eh! Jim's doing us all quite a service here.

Greg
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 11:57am 24 Mar 2014
Copy link to clipboard 
Print this post

...I note that one of the SETTICK commands is still black, but the LOC and user defined subs are correct.

And you are right - I'd be lost without MMEdit now - I have got so used to it, and I like colour, so I never use the built in editor in MM anymore - AGAIN - no disrespect to it, that is just MY way of doing things, which is not to say that the built in editor might appeal to others more - it's all a matter of opinion!
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 05:26pm 24 Mar 2014
Copy link to clipboard 
Print this post

The cause of the second SETTICK not highlighting is the ':'
Multi-statement lines were a problem but I think you will be pleased when I get around to releasing the next beta.

Not thinking about the maximite much today. Looking out over the bay with Freycnet national park in the distance, perusing the menu trying to decide what we will be snacking on at the restaurant tonight.
Walking distance to the cottage so the wine list will get perused as well.

Jim


VK7JH
MMedit   MMBasic Help
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 08:53pm 24 Mar 2014
Copy link to clipboard 
Print this post

Could do a lot worse than that Jim - bit of a home-away-from-home for me since I was a kid. I was down there catching a few crays and stuff last month. Here's me trying to get an albatross to take the remains of a flattie out of my hand. He/she came up within about a half metre of me but wouldn't come closer - he got it anyway.

They're a big bird - he was the size of a goose. That beak was about 12 cms long I reckon, with a nasty looking hook on the end - and the beak was a light grey colour, not yellow so I suspect it was relatively young. First one I've ever seen come up close.

Greg


 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 09:29pm 24 Mar 2014
Copy link to clipboard 
Print this post

Awesome photo!
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024