dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit ef3d25cb65967610a6fda98be4a0faf6e51f5072
parent 003f83376951f69d6b7ca76c50936ed55896ba16
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed,  7 Jun 2023 22:47:32 -0700

add html/bash

Diffstat:
Mpkg/web/handlers/api/v1/codeModalInterceptor.go | 2+-
Mpkg/web/handlers/handlers.go | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/codeModalInterceptor.go b/pkg/web/handlers/api/v1/codeModalInterceptor.go @@ -39,7 +39,7 @@ func (i CodeModalInterceptor) InterceptMsg(cmd *Command) { return } - if !utils.InArr(lang, []string{"go", "c", "cpp", "py", "js", "php", "css", "sql", "rs", "c#", "rb"}) { + if !utils.InArr(lang, []string{"go", "c", "cpp", "py", "js", "php", "css", "sql", "rs", "c#", "rb", "html", "bash"}) { lang = "" } cmd.origMessage = codeFenceWrap(lang, cmd.origMessage) diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5390,6 +5390,8 @@ func getCodeModalHTML(codeModalIdx int, roomName, csrf string, msgTyp database.C <option value="sql">SQL</option> <option value="c#">C#</option> <option value="rb">Ruby</option> + <option value="html">HTML</option> + <option value="bash">Bash</option> </select> <button type="submit">send</button> </div>