Comments (2)
@pmgl May I work on this?
from microstudio.
Pasting the below into 'mylang' option of https://microsoft.github.io/monaco-editor/monarch.html you can pretty much most of microScript code to syntax highlighting/auto-complete.
Note that there are more commands added to microScript since I put the below together,
Hoping to see auto-completed added the the IDE.
keywords: [
'local','global','object','class','extends','super','this','new',
'if','then','else','elsif','print','end',
'for','to','in','by','break','continue',
'function','return','while',
'and','or','not','true','false',
'max','min','round','ceil','floor','abs','sqrt','pow','PI','log','epx',
'sin','cos','tan','asin','acos','atan','atan2',
'sind','cosd','tand','asind','acosd','atand','atan2d',
'random','seed','next','nextInt',
'length','substring','startsWith','endsWith','indexOf','lastIndexOf','replace','toUpperCase','toLowerCase','split',
'push','insert','insertAt','removeAt','contains','removeElement','concat'
],
typeKeywords: [
'set','get',
'screen','width','height','clear','setColor','setAlpha',
'fillRect','fillRound','fillRoundRect',
'drawRect','drawRound','drawRoundRect','drawLine','fillPolygon','drawPolygon',
'drawPolyline','setLineWidth','setLineDash',
'setLinearGradient','setRadialGradient',
'setTranslation','setDrawRotation','setDrawScale','setDrawAnchor','setBlending',
'setCursorVisible',
'sprites','drawSprite','drawSpritePart',
'maps','drawMap','block_width','block_height','clone',
'drawText','drawTextOutline','setFont','loadFont','isFontReady','textWidth',
'inputs','keyboard','mouse','touch','gamepad','touches','touching','press','pressed','release','left','right','middle',
'system','time',
'storage',
'audio','playSound','playMusic','setVolume','setPitch','setPan','play','stop','getPosition','getDuration','beep','cancelBeeps'
],
from microstudio.
Related Issues (20)
- Switching to project with hidden code tab still shows the code tab
- alt-tabbing out of the game locks ALT in pressed state HOT 3
- Sprite editor - Keyboard shortcut Ctrl+A to select all
- Sprite Editor - Offer a list of palette
- Disabling / enabling help window changes cursor position in editor, causing help window to stay collapsed HOT 1
- In project Explore view, source code is not highlighted in the correct language
- Music played does not resume after paused via IDE HOT 1
- string.replace odd behavior.
- microstudio.dev is down
- Editors - Every editor should allow to download single assets HOT 2
- Release 23.05.25 Changelog Inconsistency HOT 1
- Javascript language give incorrect line number for syntax errors
- Image.drawMap doesn't render the updated map buffer
- Add a new function sprite.setFPS( newfps ) which would do a clean FPS change without breaking the phase
- Add code autocompletion HOT 1
- Enhancement: ability to create standalone .html files with microStudio to open in mobile client browsers
- Babylon.js 3D model importers (non-loader objects) not working consistently across microStudio versions/languages
- Babylon.js FreeCamera default controls not fully working with microscript 2.0 on Apple devices
- Addition to documentation: method to import local meshes to use with Babylon.js n desktop microStudio app HOT 2
- Feature Request: Areas in Maps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microstudio.