mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
- Updated ContactForm example to remove type casting on handleInputChange. - Enhanced package installation scripts with type definitions for better type safety. - Implemented package uninstallation and installation checks with improved type definitions. - Added new Lua scripts for admin settings, code editor features, and user management. - Introduced schema editor field types and validation rules for form inputs. - Created social feed components and workflow editor nodes for enhanced functionality. - Developed layout modules for various UI levels, including admin and supergod panels.
12 lines
393 B
Lua
12 lines
393 B
Lua
-- Code editor syntax highlighting
|
|
local function syntax(language)
|
|
local themes = {
|
|
typescript = { keyword = "#569cd6", string = "#ce9178", comment = "#6a9955" },
|
|
lua = { keyword = "#c586c0", string = "#ce9178", comment = "#6a9955" },
|
|
python = { keyword = "#569cd6", string = "#ce9178", comment = "#6a9955" }
|
|
}
|
|
return themes[language] or themes.typescript
|
|
end
|
|
|
|
return syntax
|