mapeditor / mapeditor/tiled

Script editor/syntax highlighting in properties

Open
#1,671 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

A lot of the time you'll want to add rudimentary scripting snippets to an object. It would be nice to have some form for script editor in Tiled. This should probably be a different "property type" (like int, float, color, string, etc). Editing one would pop open a lightweight code editor with syntax highlighting. There should be a dropdown somewhere to select a language for highlighting, which would be saved together with the property in the .tmx file.

Forgive my horrible UI mockups:
![](http://i.imgur.com/Y4cXp0A.png)
![](http://i.imgur.com/luHOBjp.png)
![](http://i.imgur.com/NR7QywQ.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by locating the existing property-type editor and .tmx property serialization, then define the editor, language-selection, and persistence behavior; done means script properties can be edited with syntax highlighting and their selected language is saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.