IvanC
2019 年 8 月 2 日午前 5:48
1
Hi, could someone help me out please with a line of HTML/CSS that I can embed into a topic box to (do something like) change a line of text to blue? I can then experiment with other changes…
I realise this is a super simple question for most here, but I’m struggling with the basics. Many thanks for any help.
Topics are prepared in Markdown . This standard does not implement coloured text like HTML.
You could try Discourse BBCode color or Awesome BBCodes Plugin: multi-paragraph, nestable, with auto-complete
(though I’ve not tried them myself)
「いいね!」 5
IvanC
2019 年 8 月 2 日午前 7:27
3
Thanks very much for the explanation and the suggestions.
「いいね!」 1
RBoy
(RBoy)
2023 年 11 月 3 日午後 3:15
4
プラグイン(app.ymlを編集してDiscourseを再構築する必要があり、プラグインが将来機能しなくなった場合に問題が発生するリスクがありますが、BBCodeカラープラグインは公式プラグインなのでリスクは低いです)を希望しない場合は、管理者のブラウザページから再コンパイルせずに実行できるアドオンテーマがあります。
“BBCode-lite” without the need to install a plugin …
Adds a simple control (palette icon) to the Composer to facilitate colouring of the foreground and background of text
[image]
Select a word or text
Hit the palette control
It will be wrapped like so: [wrap=color color=# bgcolor=#]word[/wrap]
Replace the #s with html-compatible colour names, e.g. “red”, “grey” … experiment.
NB Same caveats apply as to BBCode: can be used to hide text.
Credits
Uses @j.jaffeux ’s Generic bbco…