Skip to content

[209_19] add missing language options in toolbar code menu#2996

Merged
JackYansongLi merged 2 commits intoMoganLab:mainfrom
1sh-repalto:1sh-repalto/209_19/add-missing-language-options
Mar 18, 2026
Merged

[209_19] add missing language options in toolbar code menu#2996
JackYansongLi merged 2 commits intoMoganLab:mainfrom
1sh-repalto:1sh-repalto/209_19/add-missing-language-options

Conversation

@1sh-repalto
Copy link
Copy Markdown
Contributor

Fixes #2994
missing programming languages in the "Inline code" and "Block of code" menus

Summary

Added Java, JavaScript, Julia, Lua, Matlab, MoonBit, and Gnuplot to the "Inline code" and "Block of code" menus in prog-menu.scm.

Developer Document: devel/209_19.md

Issue Found

Mogan supports a wide variety of programming languages through its plugin system, but many of these were not present int the "Inline code" and "Block of code" menus.

Changes

In TeXmacs/progs/prog/prog-menu.scm:

  • Added make* calls for each language to the Inline code and Block of code submenus.
  • Mapped each language to its corresponding plugin tag (e.g., java for inline and java-code for blocks).

Example for inline code:

("Java" (make* 'java "java"))
("JavaScript" (make* 'javascript "javascript"))
...

Example for block of code:

("Java" (make* 'java-code "java"))
("JavaScript" (make* 'javascript-code "javascript"))
...

How to Test

How to test

  1. Open Mogan.
  2. Navigate to the code icon in the toolbar or Insert -> Code.
  3. Hover over Inline code and Block of code.
  4. Verify that the following 7 new languages appear in both lists:
    • Java
    • JavaScript
    • Julia
    • Lua
    • Matlab
    • MoonBit
    • Gnuplot

Before

image

After

image

Copy link
Copy Markdown
Contributor

@JackYansongLi JackYansongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JackYansongLi JackYansongLi merged commit a271705 into MoganLab:main Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[209_19] missing programming languages in the "Inline code" and "Block of code" menus

2 participants