Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:46 07 Jul 2025 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 : V5.2 syntax files for MMEdit

Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 07:11pm 08 Jul 2016
Copy link to clipboard 
Print this post

The attached ZIP has two syntax files for MMEdit.
Unzip and place the two files in your MMEdit data folder.
The data folder location can be found for Help/About.

Restart MMEdit and you should have the two new files (micromite and Micromite_plus) in the list when you 'change syntax'

I have added a lot of the missing words as well as the new ones. I am sure that some have been missed.

Many of the keywords are still OK to use as a variable.
YELLOW only has significance in the RGB() function so you could have a variable named YELLOW for general use, but I don't advise it.
If you did this, the variable report will get confused but no electrons will be harmed.

2016-07-09_051133_52_syntax_data.zip

Jim


VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 10:16pm 08 Jul 2016
Copy link to clipboard 
Print this post

If you are running V3.3.6 of MMEdit or earlier,
please update your MMEdit.tkn file (in the program folder) with the one in this ZIP.
The KEYWORD list is getting too big.

2016-07-09_081519_MMedit.zip

There are a few other changes that I am partway through implementing but you shouldn't notice anything different yet.

Jim
VK7JH
MMedit
 
Cremo
Newbie

Joined: 21/07/2015
Location: Italy
Posts: 36
Posted: 10:25pm 07 Sep 2016
Copy link to clipboard 
Print this post

Thank you for the sintax files (I sent you some beer money). It seems to be that is missing GUI SHOW.

I have two questions :
1) is it possible to print the listing with sintax coloring as in the screen ?
2) is it possible to insert page breaks to separate in printing blocks of program ?

Thank you.

Pietro
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 12:56am 08 Sep 2016
Copy link to clipboard 
Print this post

It would be very great if you print in color and upper and lowercase properly. View just like on the screen.


Thank you !!
 
hwholmes
Newbie

Joined: 30/05/2014
Location: United States
Posts: 10
Posted: 08:56am 08 Sep 2016
Copy link to clipboard 
Print this post

Tassy Jim thanks for the update.
What is the status of the LINIX version of MMEdit? I am about to move my model railroad control to a RaspberryPi (Raspian) and would love to be able to edit and download my MicroMite signal and sensor modules from there.
Bert Holmes (Towers of Hanoi)
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 11:38am 08 Sep 2016
Copy link to clipboard 
Print this post

@Cremo
GUI SHOW is in the micromite Plus manual but not in the micromite manual so it is only in the plus syntax file.

Syntax colouring is not possible with the current version on MMEdit and don't expect it any time soon,

For fancy printing, I suggest copying into another text editor such as notepad++

@PicFan
If you select Program/Save Keyword case, your code will save the case of keywords and allow you to print with your chosen setting.
Sorry, no colour.

@hwholmes
No news about a Linux version and even when/if it does appear, it will be for x86 systems, not RPi.

I think you can get Putty for RPi.

My method is to run ser2net on the Pi and use MMEdit across the network from the comfort of a Windows box.
The MMEdit test server is doing that.

Jim
VK7JH
MMedit
 
Cremo
Newbie

Joined: 21/07/2015
Location: Italy
Posts: 36
Posted: 12:40am 09 Sep 2016
Copy link to clipboard 
Print this post

Thank you TassyJim, now I have a correct working sintax file (I had problems with my installation).

It is a pity that the sintax coloring is not available for printing.

Best regards.

Pietro
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 02:37pm 13 Sep 2016
Copy link to clipboard 
Print this post

I have been playing with an option to post coloured code segments to TBS.
With a few changes to the forum code by Gizmo, it seems to be working.

  Quote  
FOR n = 1 TO 100
Responce$ =
"Thank you Glenn"
NEXT n
' now I can add a bit of colour to the world


I still need to do some testing to make sure that random character sequences don't do strange things but I am pleased with the results so far.

You should be able to copy and paste the code into an editor without any odd things happening.

As a sideline, I am also adding code to save you program code as RTF which will then open your default RTF viewer.
You can then print as many colour pages as you like.

I still have a lot of testing to do. MS Word sets the margins as requested but Wordpad doesn't.

I expect to have the same problems with page headers etc.

RTF is an ancient format and most word processors are happy to read it.

Jim

VK7JH
MMedit
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 04:05pm 13 Sep 2016
Copy link to clipboard 
Print this post

  TassyJim said   I have been playing with an option to post coloured code segments to TBS.
With a few changes to the forum code by Gizmo, it seems to be working.


Really cool Jim.

I was looking at the source when I quoted it.

Another thing that would be great is if tht spaces weren't all stripped out.

IE if (Quote) worked like (Code).

The you could add bold & italic to code...

That then again, your example is showing just that; seems my mind is stuck in neutral.

Phil
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 04:29pm 13 Sep 2016
Copy link to clipboard 
Print this post

quote sections now allow multiple spaces.
quote is still different to code which is the safest way to post code.

I have had to do a few passing tricks to prevent accidental formatting in posted code.

  Quote   test$ = " [COLOR=RED] this should still be green![/COLOR]"
PRINT test$


I had to use quote instead of code to get around the restrictions in 'code'

I will have to see if I have captured all the combinations that cause grief.
It is also possible that different browsers do things differently.

Jim
VK7JH
MMedit
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5116
Posted: 01:52am 14 Sep 2016
Copy link to clipboard 
Print this post

Use Courier New font for code and to preserve spaces.

Courier New is a monospace font, so all the characters have a equal spacing. The other fonts have variable width characters, ie i and l are not as wide as m and w.

By default, html pages ignore multiple spaces, they are bunched together into one space. This is normal, but the web page can be forced to space out every space with a little html style trickery. This is what I did to the Courier New font, making it suitable for displaying code.

Checked it with IE, Chrome and Firefox, but I'll bet there are browsers that wont play ball.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025