RPTools.net

Discussion and Support

Skip to content

It is currently Sat Dec 16, 2017 11:47 am 






Reply to topic  [ 102 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7967
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Jun 04, 2010 7:08 pm 
If it's windows, then it's there, but it's hidden from you. When browsing your folders with explorer, you can click Tools | Folder Options. Click the View TAB look checkbox list and uncheck "Hide protected operating system files"... OR you can browse to the right spot and type in "\Application Data" after your user name. Then you can browse to the Notepad++ folder from there.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Jun 04, 2010 7:25 pm 
Aha.

*Performs feel-like-a-noob facepalm.*

I know about hidden files/folders, but I've so rarely done anything that involved them, I had forgotten to check that option. Thanks!

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3782
Location: MD
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Jun 04, 2010 7:57 pm 
Thanks for the update to the Lang file, Aliasmask.

And I updated my earlier post where I mention where the AppData directory is in Win7 to indicate that it's "Hidden". Turning on view Hidden files and showing Hidden OS Files is one of the first things I do when I install an OS.

TIP: Viewing hidden directories and hidden OS files can be a per folder option. If you turn the option on globally, you probably won't want to see the hidden files on your desktop. In Win7 you can turn them off for that folder by:

1) In Windows Explorer, navigate to your DeskTop Folder.
2) Click the "Organize" drop-down and Select "Folder and Search Options."
3) Make sure "Hide Protected OS System Files (Recommended)" is checked.
4) Click the "Apply" button at the bottom (not the "Apply to Folders" button at the top, unless you want the setting to affect all folders.)

_________________
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7967
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Oct 29, 2010 3:18 pm 
I was updating my config file for maptools code and I would really like to integrate a method for blocked code without messing up the code and here's what I'm thinking of doing.

Quote:
@@ #macroName(param1[,param2{"{}"}]): returnVal
[H: param1 = arg(0)]
[H, if(argCount() >= 2): param2 = arg(1); param2 = "{}"]
[H: macro.return = returnVal]
!!


This would be an alternate to the existing formatting where the old will still work, but this method would do some extra things. First of all, I would only need to define the first line as shown above and the rest would be automatically filled in on import. Leaving the : and following out of first line will not generate and macro.return line. If no tip is defined, the tip will be set the code on the first line, for example "macroName(param1[,param2]): returnVal". In the above example I set the default value or param2 when not given inside the {}. If no default is given then "" is the default value.

Would anyone other than me use this?

edit: This is more of a MacroIO comment, but related to notepad, I'm updating the highlighting to accommodate this format. I'm also working on adding the function syntax and descriptions to the maptool.xml file. I was going to parse the data from the VIM editor, but it seems just as easy to just copy from the wiki since the data in VIM needs to be tweaked with anyway. The function format will be:

Quote:
[JSON] FUNCTION: functionName (parameters)

Description in unformatted block of text 72 char wide.

_________________
Downloads:


Last edited by aliasmask on Fri Oct 29, 2010 6:18 pm, edited 1 time in total.

Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Mon Jun 29, 2009 9:37 am
Posts: 3108
Location: Germany
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Oct 29, 2010 5:59 pm 
It could be that I would use it .. but ... aeh ... what? What does that? Is this about code highlighting or has it something to do with macroIO? I lost you... :?:

_________________
HELP: GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC.

most complete list of my maptool stuff


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7967
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Oct 29, 2010 6:28 pm 
CoveredInFish wrote:
It could be that I would use it .. but ... aeh ... what? What does that? Is this about code highlighting or has it something to do with macroIO? I lost you... :?:

Currently, I'm just talking about code highlighting and using the autocomplete in notepad. The example format:

Quote:
@@ #macroName(param1[,param2{"{}"}]): returnVal
[H: param1 = arg(0)]
[H, if(argCount() >= 2): param2 = arg(1); param2 = "{}"]
[H: macro.return = returnVal]
!!

is something I'm considering on doing with MacroIO. I'm terrible at setting bookmarks, but if I can collapse all the code I don't update and I'm not working on, that would greatly save my scroll button.

But doing this I found a bug?? with notepad. Apparently it doesn't like the "." character in the keywords. Before I had json and length as separate keywords and made a function out of length, but as you may know json.length and length would have the same description using that method. So, I was trying to make json.length a function but it doesn't seem to work. I know it didn't work before because "." was an operator, so I removed it from the operator list and discovered this bug. I'm in the process of posting it on sourceforge now, but who knows when someone will tackle that, so I'll just have to have both descriptions for that one example (to be thorough).

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Mon Jun 29, 2009 9:37 am
Posts: 3108
Location: Germany
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Fri Oct 29, 2010 6:36 pm 
Ah ... okay, now i got it.

Sounds useful to me (except for the bug :) )

_________________
HELP: GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC.

most complete list of my maptool stuff


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7967
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file
PostPosted: Wed Nov 03, 2010 3:04 pm 
New Maptool config and color scheme are up. I'm only posting the one color scheme now, since it's pretty easy to set your own scheme if you don't like it. The important thing is all the keywords are in the file.

I also updated the function keywords and added DESCRIPTIONS from the Wiki. You'll definitely want to download and update that file.

Next, I'll be working on new MacroIO functionality and eventually combine that, Cif's new timer code (or a close variation) and my debugging code in to one lib.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Mon Jun 29, 2009 9:37 am
Posts: 3108
Location: Germany
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/3]
PostPosted: Fri Nov 05, 2010 7:59 am 
Oh this is so awesome. Feels like working in a real IDE. I cant wait to see what you do to macroIO. :-D

_________________
HELP: GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC.

most complete list of my maptool stuff


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/3]
PostPosted: Fri Nov 05, 2010 8:42 am 
Nice!
However I can't get the tooltip to work, how does it work?
as in if I type e.g. "replace(" and hover my mouse over it nothing happens. I do get the dropdownbox for function selection.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7967
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/3]
PostPosted: Fri Nov 05, 2010 9:06 am 
When you open a document and set the language to maptool. You should be able to type in a function (case-sensitive) and when you put the paren "(" the tip should pop up.

Now for that to happen you do have to config notepad. Under Settings | Preferences | Backup/Auto-Completion TAB you have to "enable auto-completion on each input", select "Function Completion" and check "Function parameters hint on input". I didn't mention the last part in the original post because I didn't have the function data, but I'll update it now.

OPTIONALLY: You can leave the "Function parameters hint on input" unchecked and hit CTRL-SHIFT-Spacebar to have the hint popup while typing in the parameters.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/3]
PostPosted: Fri Nov 05, 2010 10:12 am 
Check! that did the trick, very very very nice!!! thnx.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/3]
PostPosted: Sun Nov 07, 2010 4:06 am 
I noticed that 'replace' is alphabetically in the wrong place in the function drop down list. As I don't know how to fix it, I thought I at least mention it here.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7967
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/3]
PostPosted: Sun Nov 07, 2010 4:38 am 
wolph42 wrote:
I noticed that 'replace' is alphabetically in the wrong place in the function drop down list. As I don't know how to fix it, I thought I at least mention it here.

Actually the regex.info1... is out of place. If you open the maptool.xml file, you can cut/paste those keywords in to the correct order. The file sorts by the order it appears in the xml file.

I typed in the regex.info1 after doing the replace because it was relevant, but I didn't think about putting it in to the correct place at the time. It does interfere with the popup (sometimes), so I'll replace the current file with the corrected one. But the way it reacts now is that the keyword doesn't popup unless there is a conflict in the keywords... so typing "str" will list "strfind,strformat" because the both start with "str". Depending on your setting of how many characters, it may not show up at all, but you can still hit ctrl-enter and it will either give you a list or input the keyword. So, if you set it to 1 character, then it will popup for everything.

edit: maptool.xml has been updated. Download again to have the auto-complete work better.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 11/7]
PostPosted: Sun Nov 07, 2010 8:44 am 
Thnx.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 102 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 3 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman