Petit Computer Wiki
Petit Computer Wiki
Advertisement

About[]

I started a Notepad++ language file for Petit Computer syntax. If we can agree on a common syntax highlighting then it might be easier to edit Petit Computer code, or even spot errors because of the way I'm doing this.

Get it:[]

These two versions are submitted by different contributors. They will not be the same.

Main version, by GimmeMoreCoinz:

http://pastebin.com/icgvy4iZ

Other version, by TriforceofKirby22:

http://pastebin.com/KxVr1BWe

Categories[]

I have split Petit Computer's basic syntax up into a few categories. They are as follows:

  • Program flow control
  • Graphics
  • Text
  • Data
  • Allocation


Program flow control includes commands such as For, return, goto, gosub. etc.

Graphics commands include most commands that start with G, including things like GPAGE, GPSET, GCOLOR, GCLS, but it also includes a few others that fit into the same category that controls the screen.


Text commands include things like print, and input. Left$, right$. basically things you'd use to manipulate text.


Data commands only have two highlighting they are, DATA and READ. Making them very easy to identify.

Allocation commands include dim only.

Notepad petit computer

Notepad++ Petit Computer Code Styling. Labelled as SMILEBASIC


How to use:[]

  • Copy the text into Notepad and use "File:Save As: " (Make sure you run Notepad by right clicking and clicking Run as Admin!)
  • Browse to the folder of Notepad++
  • Name the file SMILEBASIC.xml
  • Below the name input box click the file type, and click the All Files option.
  • Click Save
  • Click on langauge menu inside of notepad++ (The 6th tab on the top of the window)
  • Click on "Define Your Language"
  • Click the import button
  • Select the file inside the Notepad++ directory called "SMILEBASIC.xml"
  • And your done! Start coding!
Advertisement