Syntax Highlighting for Morscript using Notepad++ - Windows Mobile Development and Hacking General

Mortscript for Notepad++
Hello guys, not sure whether this is the right place for this thread, but as MortScript seems pretty popular and santax highlighting makes things easier, I wrote a little script for use with Notepad++.
The attached file contains a file called userDefineLang.xml which you simply need to put into %APPDATA%\Notepad++ for the installed version or into Notepad++'s Program folder for portable version. If you open a Mortscript with Notepad++ for the next time, it will be highlighted. I am not sure whether I catched all functions, but this script can easily be extended by using Notepad itself.
Maybe it helps you a bit.
Regards

Cool contribution, thanks a lot. I use NPP as windows notepad replacement, and edit mortscripts with it as well. This should make it a bit easier

Cool. I use Notepad++ on my PC, But to make MortScript file on my phone i use zNotepad or MADE. zNotepad is made for making MortScript files. Thats the standard extension when you save a file. MADE is a great text editor wich I've used since I first got a windows mobile phone. They're both free but zNotepad comes with GSlide

Awesome, I tried to do this last week but notepad++ kept crashing on me...plus I can't ftp to my phone with this, so I use pspad.

Try CKE
Hi guys,
I use CKE as onboard editor. GSlide was more or less built on my P3600
CKE is by far the most competent code editor for pocket pc. With built-in support for syntax-colouring, indentation, running files with external apps etc.
I will post config files soon.
Ciao,
Lars

This is exactly what I was looking for! Thanks a bunch.

Thanks!!
I suggest you provide your UserDefinedLang to the Notepad++-Wiki.
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files

Notepad++ AutoComplete
I just created AutoComplete file: MortScript.xml
File should be placed here: \Notepad++\plugins\APIs\MortScript.xml
To have a instant Autocomplete change: Settings > Preferences > Backup/Auto-Complation according to file: AutoCompleteSettings.png
Enjoy

Related

Folder structures - can't see files from word or excel

Does anyone have a hack that would allow me to view and save data files at a lower folder than the first level?
I.e. my folder structure is \Personal\Financial\ but excel and word can only see files stored under \Personal\ and not the next folder down. I need to be able to access this second level from within the application.
Would be a great help to me.
If you haven't installed Mad Programmer's dialog changer, you're not using your pda properly.
http://www.pocketpcmag.com/forum/topic.asp?TOPIC_ID=17133
V
Thanks vijay555 but this is not in relation to installing apps.
There is a particular problem in WM2003 whereby if I store for example my pocket excel files in the folder:
\Financial\Spreadsheets\
I cannot access this folder from Pocket Excel but only from File Explorer. Pocket excel will only show the files existing in the folder "Financial" here. It means that when I create a new excel (or any other document) from within the application, I have to save it to the "financial" directory first, then manually move it to the next folder down.
Same applies to Pocket Word, Listpro etc files (any files in fact).
Paul
pauldcullen: although the link I gave is talking about installing cabs and stuff, Mad Programmer's dialog changer hooks into the OS and changes all of the rubbish OS dialogs (that only allow you to see My documents etc) and replaces them with the more advanced kind that let you navigate anywhere.
The link I gave is a useful one on installing the app itself, because Mad Programmer's website is generally Japanese. But hopefully, try installing the app and you should be able to navigate anywhere for saving files.
http://www.geocities.co.jp/SiliconValley-Cupertino/2039
Ensure you use the right version for your OS.
V
thanks a lot I'll give it a shot - any stability problems with it?
I've never had any and used it for > 1year on both Wm2003 and Wm5.
V
vijay I've installed it and it seems to work for SAVING new files into a sub-directory which in itself is great!
However, as soon as I OPEN pocket excel etc, I cannot see these files in the subfolders, only those in the parent folder - any ideas?
Thanks for your help!
Paul
Hmm, I just noticed that...
It seens mad programmer only hooked the saving, not opening dialogs.
Not the best option I know, but I never open files using word, I use gsfinder to locate them and open directly by double clicking.
Other then that, I don't think Word was "designed" to show the subfolders as you've got them configured. PITA I know.
V

Registry Editor

As we all know, a registry editor is pretty important when modding our devices. I personally hate doing registry edits on my wizard and it JUST SO HAPPENS that today while searching for a new registry editor (i lost my wizard in toronto a week ago and didnt have any software for it anymore!) i found one that works wonders and is based from a PC instead of the PPC. seems to work well for me. check it out! it is attached and it is freeware. it seems to work great with WM6 so i would say its safe to assume it will work with at the very least 5 also if not older versions of WM.
just thought id give back to the community since i have used this resource time and time again!
Total Commader and Task Manager, which come with many custom ROMs, already contained a full-featured registry editor with import/export functions, so why install another one?
this is not based from the PPC if you read my post. its much easier to navigate via your pc as i mentioned in my post.
Just use mymobiler. You can do EVERYTHING on your mobile from your desktop with that program. Then TotalCommander or another program can retain their value as multifunction programs capable of file management, text file editing, and registry editing.
Myrddin Wyllt said:
Just use mymobiler. You can do EVERYTHING on your mobile from your desktop with that program. Then TotalCommander or another program can retain their value as multifunction programs capable of file management, text file editing, and registry editing.
Click to expand...
Click to collapse
personally as a geek myself, if there is an app that removes the actual interaction of the PPC and moves it into a native windows app id much rather use that. the problem with this app is it still mimics the physical interaction of the PPC. something the registry editor i posted above isnt doing. its mimicking regedit in windows but accesses your PPC.
just to prove my point here are two pics of examples.

Write Registry Values to XML / Text File

Is there any program i can use to write a certain registry value to a XML file or a text file
thanks
MS
hundreds of...
total commander
dotfreds task manager
resco explorer
can these write a certain registry key to a text file periodically or do u have to manually do it ?
yes I want to find out also
Like I want to export my registry keys let us say "Owner Information" using command line and output file to Storage card. I do not care what format it is in. (.reg is fine). Right now I use Task manager and export one at a time. this is a little lenghty process
maybe try this one
http://forum.xda-developers.com/showthread.php?t=344167&highlight=command+line+registry+editor
which is a cmd-line reg-editor. don't know if it can do export as well, but i gues it does.
use this in combination with a scripting tool or scheduler (e.g mortscript)
Look like this is a tool to import from desktop or laptop
egoist6 said:
maybe try this one
http://forum.xda-developers.com/showthread.php?t=344167&highlight=command+line+registry+editor
which is a cmd-line reg-editor. don't know if it can do export as well, but i gues it does.
use this in combination with a scripting tool or scheduler (e.g mortscript)
Click to expand...
Click to collapse
I do not thinks you can run it from your Pocket PC device.
yeah. it runs on desktop but operates on the pda. maybe you can combine your syncing with a parallel read of your reg keys.
anyway, i am pretty sure there do exist cmd line reg editors

GSlide 0.3 - Now with MortSupport :)

Hi Everyone
Try my new GSlide version which has built in MortScript plugin support
http://81.93.138.210/GSlide
I bet you can make some cool things with this
Also please try to make some skins. Still have some bugs in the skinning support but it works pretty well
Give me comments!
Ciao,
Lars
hallo, just found this. a smooth and fast fingerfriendly file explorer. very good.
but here are my problems:
- can´t open a txt-file file or xml file, but need a text editor, is it possible to link these files to totalcommander ?
- the app crashes (unexpected error)when i try to open the "windows" folder and "own videos"-folder ?
- what are these functions/apps at the right bottom ?
thanks for help. if you want i can do a skin for it.
bluemetalaxe said:
hallo, just found this. a smooth and fast fingerfriendly file explorer. very good.
but here are my problems:
- can´t open a txt-file file or xml file, but need a text editor, is it possible to link these files to totalcommander ?
- the app crashes (unexpected error)when i try to open the "windows" folder and "own videos"-folder ?
- what are these functions/apps at the right bottom ?
thanks for help. if you want i can do a skin for it.
Click to expand...
Click to collapse
It actually used Word Mobile by default when i tried openning a text file.
it runs very very smoothly. nice interface. very simple and straightforward.
obviously just a beginning as there's no copy, paste, cut... advanced config and other options. maybe a small kinetic toolbar throttlelauncher like with the most important actions on it?... just throwing stuff in the air.
very very cool.
nice start...
implement what already been stated + maybe some smoother transitions.
I love your program. It'll probably be a free alternative for Resco Explorer in the future. Keep developing and listen to user feedback.
One feaute request: I'd like to have the option of row height. This program will mainly be used with thumbs and not everyone has the same thumb size.
@nir: i know i can open txt-file with word but i rewrite xmls and txt-files for programming.
anyone elso has a crash when opening windows folder ?
Hi
Thanks for your feedback!
First of all, replace the old installation with the new 0.3 version.
Regarding opening files:
By default GSlide uses shell execute, which is to say the default windows association for the file type.
By adding the MortSupport feature i have made it possible for you to add custom actions by writing or modifying scripts in the actions folder. Read more on the site
GSlide has problems with large folders such as the windows folder. The memory runs out. This can be handled by paging the directory (splitting it up into several pages).
Regarding errors for the context shortcuts, its mostly due to different file paths in the operating system. In the swedish version for example My Documents is called Mina Dokument... Go to the /GSlide/actions/ folder and edit the "GSlidePath.mscr.inc" file which is the place where all system paths are stored. There you can change the paths according to your config.
Regarding skins:
Lot of updates have been made such as,
- row height
- background color
- font
- font weight
- etc...
I will keep updating GSlide with many cool things Help me to write cool script actions! Post to web maybe?
Dont forget to use the latest version!
Ciao,
Lars
New API script for all GSliders
I made a new, more logical API include to make developing of actions easier.
I have also added a "copy file" and "delete file" action as proof-of-concept.
the GSlideAPI script is pretty nifty if I might say so it implements a Object-Oriented looking code style to MortScript. check it out
Ciao
Just tried it and it seems to run pretty smooth. I am sure this is just the beginning for this app. With time this could be something very useful and great. Good job so far
Some suggestions for new versions:
- possibility to show the taskbar
- scrolling looks good, BUT it is a little bit difficult to stop the list and click on the right file - perhaps you could build in a gesture to stop (e.g. short tap on screen => stop)
- of course such basic things like "rename", "send" etc. (file size...)
BUT GREAT WORK! GSlide is a tool which fills another gap for a fingerfriendly Windows Mobile
Thx
Melkor
edit: Nevermind
Updated version coming shortly
hi
New GSlide on the way soon. I have been focusing on getting friendly with MortScript for the last couple of days
I will make a new actions menu with improved usability and make it possible for an action to span several steps (such as copying or moving files to other directories). the pure UI bling and skinning related stuff will have to wait a bit
Please give me feedback concerning the MortScript API.
Ciao

Developer's Notepad

Heyas!
Here's a rough of the notepad of my dream
Now it have:
a support of ANSI, UTF-8, UCS-2 for reading
use UTF-8 when saving into a file
syntax highlighting for C/C++/Java and a bit of HTML
tested (few) on megabyte files
a piece of slowness in some actions
I just want ask you, All, for opinion - does it have a right to live with current performance of the editor? Yeah, it should be equipped with
editing of a multiple documents simultaneously (tabbed)
customizable highlighter for a more languages
actions with binding on hardware keys
"recent files" list
search and replace
or evenmore ide-stuff: autocomplete, quick navigation thru source code, an external compiler support
(...)
But it will be later. I'm not sure if it too slow and huge for a pocket source code editing Or maybe there is a good and feature-rich notepad/IDE with all of I've mentioned above?
Nice idea. I'll try it out now, and see what happens.
I was able to open HTCHomeSettings.xml file that is too big for Total Commander or notepad in my phone (59.3kb).
Now I have a tool I can tweak my Manila2D settings while on the road.
I did notice the soft buttons are not in English, but everthing else shows up as English.
By the way, I used UPX standard compression and got your file to 144k before I put it on my phone.
NICE! one, this goes into my "useful apps" folder on my card
Really nice fast app.
I currently use cke (http://www.animaniak.com/cke/cke_main.asp) as my text/code editor on my WinMo device.
Have a look at the website and this app for some really good ideas to implement into yours.
The biggest problem I have with yours is that I can't browse the full file system.
Its a great start, and it sounds like you have a plan to make it a great piece of software.
It looks like you made space for the line numbers but they are not showing.... is that a bug or something you have just not completed?
An integrated ftp uploader/dowloader may also be really usefull...... So you can edit your website easily on the go.

Categories

Resources