diff --git a/public/scripts/slash-commands/SlashCommand.js b/public/scripts/slash-commands/SlashCommand.js index 388850fa6..4c90ca3ee 100644 --- a/public/scripts/slash-commands/SlashCommand.js +++ b/public/scripts/slash-commands/SlashCommand.js @@ -1,4 +1,5 @@ import { hljs } from '../../lib.js'; +import { t } from '../i18n.js'; import { SlashCommandAbortController } from './SlashCommandAbortController.js'; import { SlashCommandArgument, SlashCommandNamedArgument } from './SlashCommandArgument.js'; import { SlashCommandClosure } from './SlashCommandClosure.js'; @@ -260,6 +261,15 @@ export class SlashCommand { ].filter(it=>it).join('\n'); head.append(src); } + if (this.rawQuotes) { + const rawQuotes = document.createElement('div'); { + rawQuotes.classList.add('rawQuotes'); + rawQuotes.classList.add('fa-solid'); + rawQuotes.classList.add('fa-quote-left'); + rawQuotes.title = t`Does not alter quoted literal unnamed arguments`; + head.append(rawQuotes); + } + } specs.append(head); } const body = document.createElement('div'); { diff --git a/public/style.css b/public/style.css index 13a1267ab..7355c4f7b 100644 --- a/public/style.css +++ b/public/style.css @@ -2086,6 +2086,15 @@ body[data-stscript-style] .hljs.language-stscript { } } + >.head>.rawQuotes { + padding: 0 0.5em; + cursor: help; + + &:hover { + text-decoration: 1px dotted underline; + } + } + >.head>.source { padding: 0 0.5em; cursor: help;