Giter Site home page Giter Site logo

Auto-Complete about microstudio HOT 2 OPEN

pmgl avatar pmgl commented on August 15, 2024
Auto-Complete

from microstudio.

Comments (2)

0x-2FA avatar 0x-2FA commented on August 15, 2024

@pmgl May I work on this?

from microstudio.

config2000 avatar config2000 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.