Feedback : Code Highligh not supported?


(Kreyren) #1

It seems that forum doesn’t support code highlighting alike:

image

!=

Recommends including with low priority since it’s usefull feature.


(Pedram Pourang) #2
#!/bin/bash
echo "test"

(Alf Gaida) #3
```bash

just the normal things we all should know about github flavoured markdown.


(Kreyren) #4

wierd i’m using ```bash ?

bug?


(Alf Gaida) #5

The bug might sit before the screen - really:

bash example:

#!/bin/bash
for i in *; do
  nothing
  echo "test"
done

c++ example

QString AboutDialogPrivate::translationsText() const
{
    TranslatorsInfo translatorsInfo;
    return QString("%1<p><ul>%2</ul>").arg(
                tr("LXQt is translated into many languages thanks to the work of the translation teams all over the world.", "About dialog, 'Translations' tab text"),
                translatorsInfo.asHtml()
                );
}

AboutDialog::AboutDialog()
{
    d_ptr = new AboutDialogPrivate();
}

html example

<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

ruby example

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

(Kreyren) #6

The color scheme does not style everything… ok noted, ty for info.

EDIT: the color scheme should probably be updated o.o