I decided to create a user defined language for pico8 in Notepad++.
I used the same color scheme as pico-8.
For those who don't know what this is, it changes the colors of text in Notepad++ depending on if the text is a command, a string, an operator (+ - = * /), or other keyword. Basically it makes Notepad++ look the same as typing inside of pico-8.
..Get Notepad++..
https://notepad-plus-plus.org/
..Download..
NP++ pico-8 user defined language xml
(Or you can copy and paste the Hidden Text into a text editor and use the file extension .xml.)
...Installation...
Import the .xml into Notepad++ under the toolbar:
Language >> Define your language >> Import >> .xml file
Let me know if I missed anything, and enjoy!
Thanks for taking the time to produce this Gyrobotic!
I hope you don't mind, but I took your idea a stage further and made the following additions/changes:
• [b]CHG[/b]: Added the "p8" extension to the pico8 user defined language [i](so that it is automatically applied to .p8 files)[/i] • [b]CHG[/b]: Modified font colours and styles used to match native PICO-8 editor • [b]ADD[/b]: Created a new "PICO-8" Theme [i](so that the background colour, and other features, match PICO-8's editor)[/i] |
-- DOWNLOAD--
• PICO-8 Notepad++ Theme.zip
-- INSTALLATION--
1) Copy the "PICO-8.xml" theme file to the Notepad++ themes folder, which is typically:
• C:\Program Files (x86)\Notepad++\themes
2) Import the "NP++pico8-v2.xml" file into Notepad++ by selecting from the main menu:
Language > Define your language > Import
3) Switch to the new PICO-8 theme by selecting from the main menu:
Settings > Style Configurator > Choose "PICO-8" from the theme drop-down.
Hope someone finds these useful (and thx again to Gyrobotic for doing most of the work!) :o)
Thank you, you two.
I rely a lot in Notepad++ when I actually code Pico-8 games, which means that I would get a lot of use from this.
Why would anyone punish themselves with the pico-8 font more than they have to? My primary reason for using another editor is to escape that. The other work here is interesting but the font??? The "B" alone (or is it an E, or a backwards 3, or Ɛ) makes me want to chew my toes off. I wish pico-8 would let me switch to another 3x5 font.
Have to agree with Juanitogan. Love the language, hate that the IDE that uses the font.
For runtime ? Sure, that's fine. But actual code editing ?
It's a bit much.
Gyrobotic, I have Notepad ++ open, I have PICO-8 .XML imported and docked. How do I activate it ?
It says it's active but does not change the screen colors, for instance, for "--" to start a REM.
Changing to the language of LUA, however, does work and tint.
Something has gone terribly wrong.
Send help.
https://i.imgur.com/zyZDpb9.png
Hey this is really great! :D
I already use Notepad++ for p8 so this is perfect.
I was thinking of switching to SublimeText because I use 4 different platforms and its nice having cross platform utilities. But I might just have to keep NP++.
System font seems to be more readable
Now we just need someone to make an external sprite and map editor :P
You can edit sprites using grafx2 then import them
Thanks for making this xml file, btw! I much prefer using np++ than the in-built pico-8 editor.
Thanks for the tip. I just got done putzing around with it.
To be honest I think the Pico-8 sprite editor is perfectly fine as is.
I still think the map editor could stand for some improvement.
Reviving a dead thread - Loved using above but it wasnt collapsing my functions correctly - to fix this, go into User Defined languages, and move "Do" from "start" to "middle" on the bottom right part like this:
then it will allow you to collapse functions properly! otherwise it got confused because of my for loops
I made a new version that includes all functions as of v0.2.5g. It also fixes some things that were broken before. Multi-line comments, syntax highlighting in edge cases, added missing operators, number/hex/decimal points, etc. I did a lot of testing to make sure all highlighting is accurate to PICO-8.
I've included two versions of the .xml file. One is for .p8 files only and the other is for both .p8 and .lua. You only need to import one. There's also a theme included, but if you'd rather use your own, just keep in mind that this works best with a dark theme. More detailed instructions are included in the zip file.
Thanks to everyone else who worked on this.
[Please log in to post a comment]