• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update Code Box language support
#10
BigPete, post: 2269877, member: 4840 Wrote:okay, so there's an autodetect for supported languages, however it doesn't seem to work right away? Like on post it shows uncolored code, but on refresh it then applies.

investigating...
nvm that was my bad. should be fixed now. So.. I think autodetect should work for the following languages:


0: "bash"
1: "c"
2: "cpp"
3: "csharp"
4: "css"
5: "diff"
6: "go"
7: "graphql"
8: "ini"
9: "java"
10: "javascript"
11: "json"
12: "kotlin"
13: "less"
14: "lua"
15: "makefile"
16: "markdown"
17: "objectivec"
18: "perl"
19: "php"
20: "php-template"
21: "plaintext"
22: "python"
23: "python-repl"
24: "r"
25: "ruby"
26: "rust"
27: "scss"
28: "shell"
29: "sql"
30: "swift"
31: "typescript"
32: "vbnet"
33: "wasm"
34: "xml"
35: "yaml"

to use click the insert button (+) and then select "code"

Select "General Code" for autodetect

I will probably remove BASH, PHP, and C# from the drop down as they should be handled automatically.

paste your code in and then click insert.

Let me know if there's issues.
  Reply


Messages In This Thread
Update Code Box language support - by BigPete - 02-26-2026, 05:42 PM
Update Code Box language support - by BigPete - 02-26-2026, 05:51 PM
Update Code Box language support - by BigPete - 02-26-2026, 05:55 PM
Update Code Box language support - by BigPete - 02-26-2026, 07:56 PM
Update Code Box language support - by BigPete - 02-26-2026, 08:17 PM
Update Code Box language support - by BigPete - 02-26-2026, 08:25 PM
Update Code Box language support - by BigPete - 02-26-2026, 09:33 PM
Update Code Box language support - by BigPete - 02-26-2026, 09:34 PM
Update Code Box language support - by BigPete - 02-26-2026, 09:52 PM
Update Code Box language support - by BigPete - 02-26-2026, 09:53 PM



Users browsing this thread: 1 Guest(s)