GithubHelp home page GithubHelp logo

trigrass2 / code_editor_unity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from my-basic/code_editor_unity

0.0 1.0 0.0 35.06 MB

A code editor for MY-BASIC, powered by the Unity3D engine. With this you may create your own Code Editor, Debugger and IDE for different scripting languages.

License: MIT License

C# 100.00%

code_editor_unity's Introduction

MY-BASIC Code Editor (Unity)

Copyright (C) 2017 Wang Renxin. All rights reserved.

Introduction

This is a code editor for MY-BASIC powered by the Unity3D engine. It's implemented with the standard uGUI system from Unity3D 5.x.

It supports code manipulating, interpreter interacting, and future customization. I used a MY-BASIC DLL for Windows, and Bundle for macOS as demonstration. You can build plugin for other platforms as you wish, or use other interpreters. See the link for more information about MY-BASIC.

Note this repository doesn't contain any extended libraries of MY-BASIC or any other playable stuffs. It's just a small reusable code editor/shell.

Configuration

You may configure keywords, reserved words, symbols, opcodes, etc. as well as in which colors to represent them.

The editor also allows to configure how many lines of code is expected to be represented, assuming taking full height of the screen.

It's also able to add new function words for coloring in code.

MyCodeEditor editor = ...
...
editor.AddFunction("Your function name");

How to use the editor

Execute the bin/my_basic_code_editor_unity.exe to run the editor.

  • Click a line to input or edit code

  • Select a file slot to save and load

  • Select some lines, then make insertion and deletion by clicking the buttons

  • Click the RUN button to run the code top down
  • Click the STEP button to run the code step by step
  • Click the PAUSE button to pause a top down execution
  • Click the STOP button to terminate an execution

How to use the library

Import the pkg/my_basic_code_editor_unity.unitypackage to your Unity3D project to use this library.

Have fun :)

code_editor_unity's People

Contributors

paladin-t avatar

Watchers

 avatar

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.