[GH-ISSUE #5581] [FR] Luau support, code blocks #2481

Closed
opened 2026-03-23 21:22:45 +00:00 by mirror · 3 comments
Owner

Originally created by @OctoShotG on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5581

Originally assigned to: @MayurSMahajan on GitHub.

Description

Support for the Luau programming language in code blocks, same issues as https://github.com/AppFlowy-IO/AppFlowy/issues/5541: bad syntax highlighting
Normal Lua doesn't seem to highlight some of the type related parts of Luau

Impact

Better to read code that's highlighted

Additional Context

image
VSCode
image
AppFlowy with Lua

Originally created by @OctoShotG on GitHub (Jun 19, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5581 Originally assigned to: @MayurSMahajan on GitHub. ### Description Support for the Luau programming language in code blocks, same issues as https://github.com/AppFlowy-IO/AppFlowy/issues/5541: bad syntax highlighting Normal Lua doesn't seem to highlight some of the type related parts of Luau ### Impact Better to read code that's highlighted ### Additional Context ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/99288687/e421ea13-99ed-4b71-b6e9-028fed80009b) VSCode ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/99288687/d45f59fa-ca06-45e8-b6c8-eccbdfd03482) AppFlowy with Lua
mirror 2026-03-23 21:22:45 +00:00
Author
Owner

@annieappflowy commented on GitHub (Oct 1, 2024):

Supported
image

<!-- gh-comment-id:2384712725 --> @annieappflowy commented on GitHub (Oct 1, 2024): Supported <img width="353" alt="image" src="https://github.com/user-attachments/assets/e2a39325-337f-4d83-9887-77ac5b576bd9">
Author
Owner

@OctoShotG commented on GitHub (Oct 1, 2024):

Hello, while Lua (https://www.lua.org) is in most parts similar to Luau, (https://luau.org), Luau has some features that Lua doesn't meaning that code highlighting doesn't work as well as it should

VSCode with plugins
image

AppFlowy with language set to Lua
image

<!-- gh-comment-id:2384719092 --> @OctoShotG commented on GitHub (Oct 1, 2024): Hello, while Lua (https://www.lua.org) is in most parts similar to Luau, (https://luau.org), Luau has some features that Lua doesn't meaning that code highlighting doesn't work as well as it should VSCode with plugins ![image](https://github.com/user-attachments/assets/243371cb-dd3e-4db0-af58-adcf43fd5af2) AppFlowy with language set to Lua ![image](https://github.com/user-attachments/assets/3b3d009f-b515-4733-9e78-b3dd89efe036)
Author
Owner

@MayurSMahajan commented on GitHub (Oct 1, 2024):

Hey @OctoShotG! Currently we depend on a third party package for language support, unfortunately Luau is not supported in that third party package. Thus we can not provide Luau support with Appflowy right away. We could possibly support it by forking the third party highlights package and adding Luau Modes in it. But that would take time.

<!-- gh-comment-id:2384787745 --> @MayurSMahajan commented on GitHub (Oct 1, 2024): Hey @OctoShotG! Currently we depend on a third party package for language support, unfortunately Luau is not supported in that third party package. Thus we can not provide Luau support with Appflowy right away. We could possibly support it by forking the third party `highlights` package and adding Luau Modes in it. But that would take time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2481
No description provided.