wpDiscuz – Syntax Highlighter

wpDiscuz Syntax Highlighter addon displays formatted source code using the highlight.js JavaScript library in comment content. This addon supports almost all programming languages including Apache, Bash, C#, C++, CSS, HTML, XML, JSON, Java, JavaScript, Objective-C, PHP, Perl, Python, Ruby, SQL, Basic, Delphi, Erlang, Matlab, Prolog, ScalaScheme, Swift, TypeScript, VB.NET, Shell with dozens of different syntax highlighting styles. With this addons your commenters can insert different scripts and codes using the [</>] code toolbar button in comment editor. In the dashboard settings you can enable/disable certain programming language and change the highlighting style.

4.8 8 votes
Article Rating
Subscribe
Notify of
guest
79 Comments
Newest
Oldest Most Voted
Denielly Zimtadh
Denielly Zimtadh
28 days ago

I’ll be bookmarking this for future reference. Lots of useful information here. check this now

aas
aas
4 months ago

public class Main {
public static void main(String[] args) {

}
}

asda
asda
1 year ago
<html>
pepe
pepe
1 year ago
Hola
xyasdf
xyasdf
1 year ago
class Cat:
    def __init__(self):
        self.x = 1
xyasdf
xyasdf
1 year ago
for i in range(5):
    print("hello world")
xyasdf
xyasdf
1 year ago

**markdown**

xyasdf
xyasdf
1 year ago

inline

da294f2eacdf9d6bc92cce9a2354751a_427x119_0x33_433x180_crop
xyasdf
xyasdf
1 year ago
function disable_pre_storage_comment_filtering($comment_content) {
    // Return the raw content without escaping
    return $comment_content;
}
add_filter('pre_comment_content', 'disable_pre_storage_comment_filtering');


function disable_comment_filtering_on_display($comment_text) {
    return $comment_text;  // No filtering, just return the raw comment text
}


add_filter('comment_text', 'disable_comment_filtering_on_display');
xyasdf
xyasdf
1 year ago

function disable_pre_storage_comment_filtering($comment_content) {
// Return the raw content without escaping
return $comment_content;
}
add_filter(‘pre_comment_content’, ‘disable_pre_storage_comment_filtering’);

function disable_comment_filtering_on_display($comment_text) {
return $comment_text; // No filtering, just return the raw comment text
}

add_filter(‘comment_text’, ‘disab

xyasdf
xyasdf
1 year ago

where $Y \in \mathbb{R}^{n\times 1}$

xyasdf
xyasdf
1 year ago

\in

xyasdf
xyasdf
1 year ago
xyasdf
xyasdf
1 year ago
code highlight
截屏2024-12-16-16.51.11
截屏2024-12-16-16.47.09
xyasdf
xyasdf
1 year ago
SELECT * FROM users WHERE age > 10
xyasdf
xyasdf
1 year ago
for i in range(5):
   print()
mKA
mKA
1 year ago
print 
mKA
mKA
1 year ago

print(“Hello”)

zqqdz
zqqdz
1 year ago
print('hello')
aaaaa
aaaaa
1 year ago
input("Ingrese un número:")
SDfrrr
SDfrrr
2 years ago
ererwre
erer
wewewe
jUan
jUan
2 years ago
function my_wpdiscuz_shortcode() {
    $html = "";
    if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
        ob_start();
        include ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
        $html = ob_get_clean();
    }
    return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");
ccc
ccc
2 years ago

dd

dddd
vvvvv

ccc
ccc
2 years ago

ssa
sdddd

revre
revre
2 years ago

wpDiscuz – Syntax Highlighter

Abra Geka
Abra Geka
2 years ago
<div style='position: relative; max-width: 745px;height: 419px;'><iframe style='position: absolute;  width: 100%; height: 100%; left: 0; top: 0;' src='https://killerplayer.com/new/video/df88a28a-f962-4dcb-aa17-730e952353cb' width='745' height='419' frameborder='0' scrolling='no' allowfullscreen></iframe></div>
prueba
prueba
3 years ago

try (PreparedStatement stmt = con.prepareStatement(“SELECT country FROM country”)) { ResultSet rs = stmt.executeQuery(); while (rs.next()) System.out.println (rs.getString(“country”)); } catch (SQLException sqle) { System.out.println(“Error en la ejecución:” + sqle.getErrorCode() + ” ” + sqle.getMessage()); }

prueba
prueba
3 years ago
try (PreparedStatement stmt = con.prepareStatement("SELECT country FROM country")) {
  ResultSet rs = stmt.executeQuery();

  while (rs.next())
    System.out.println (rs.getString("country"));

} catch (SQLException sqle) { 
  System.out.println("Error en la ejecución:" 
    + sqle.getErrorCode() + " " + sqle.getMessage());    
}
Tito Morales
Tito Morales
2 years ago
Reply to  prueba


erere
erere
1 year ago
Reply to  prueba

s<csscw

Last edited 1 year ago by erere
gvectors.com
gvectors.com
3 years ago
System.out.println("text");
momo1a
momo1a
3 years ago
System.out.println("hello");
momo1a
momo1a
3 years ago
hhello
Abd El-Rahman Ayman
Abd El-Rahman Ayman(@se_abdelrahman968)
3 years ago
<?php
$name = "Quincy";
echo "Hi! My name is " . $name . "<br>";
echo "Hi! My name is " . $NAME . "<br>";
echo "Hi! My name is " . $NaMe . "<br>";
?>
Abd El-Rahman Ayman
Abd El-Rahman Ayman(@se_abdelrahman968)
3 years ago

“; echo “Hi! My name is ” . $NAME . ”
“; echo “Hi! My name is ” . $NaMe . ”
“; ?>

asscsa
asscsa
3 years ago
<?php
$name = "Quincy";
echo "Hi! My name is " . $name . "<br>";
echo "Hi! My name is " . $NAME . "<br>";
echo "Hi! My name is " . $NaMe . "<br>";
?>
demo
demo
3 years ago
services:

  wordpress:
    image: wordpress
    restart: unless-stopped
    container_name: wordpress
    environment:
      WORDPRESS_DB_HOST: wordpress-db
      WORDPRESS_DB_USER: exampleuser    ## Hier Benutzer eingeben ##
      WORDPRESS_DB_PASSWORD: examplepass ## Hier Passwort eingeben ##
      WORDPRESS_DB_NAME: wordpress
    volumes:
      - ./app:/var/www/html
test
test
4 years ago

just test

jihanss
jihanss
4 years ago
<?php
$name = "Quincy";
echo "Hi! My name is " . $name . "<br>";
echo "Hi! My name is " . $NAME . "<br>";
echo "Hi! My name is " . $NaMe . "<br>";
?>

test code

sdf
sdf
4 years ago

code block

// ES5 syntax
function Person() {
  // we assign this to self so we can use it later
  var self = this;
  self.age = 0;

  setInterval(function growUp() {
    // self refers to the expected object
    self.age++;
  }, 1000);
}

// ES6 syntax
function Person(){
  this.age = 0;

  setInterval(() => {
    // this now refers to the Person object, brilliant!
    this.age++;
  }, 1000);
}

var p = new Person();

sdf
sdf
4 years ago
// ES5 syntax
function Person() {
  // we assign this to self so we can use it later
  var self = this;
  self.age = 0;

  setInterval(function growUp() {
    // self refers to the expected object
    self.age++;
  }, 1000);
}

// ES6 syntax
function Person(){
  this.age = 0;

  setInterval(() => {
    // this now refers to the Person object, brilliant!
    this.age++;
  }, 1000);
}

var p = new Person();

Chris
Chris
4 years ago
<?php
$var = "hello";
$foo = "world";

echo $var . " " . $foo;
Jacques
Jacques
4 years ago

Essai

Juste pour voir cette mise en forme avec effet en négatif !
Test
Test
4 years ago
.test {
  background: red;
}
Test
Test
4 years ago
const test = 'test';
alexxch
alexxch
4 years ago
chown nobody:nobody connectScript.sh
chmod 755 connectScript.sh

Проверка конфига и перезапуск сервера

openvpn --config openvpn.conf
rc-service openvpn restart
Last edited 4 years ago by alexxch
AdminTest
AdminTest
4 years ago
<div class="wrapp">Test</div>
test
test
4 years ago
void main(void){
}
dddd
dddd
4 years ago

css code test,

.grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-gap: 10px;
  background-color: #2196F3;
  padding: 10px;
}


.grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid black;
  text-align: center;
  font-size: 30px;
}
dddd
dddd
4 years ago
Reply to  dddd

.grid-container {
 display: grid;
 grid-template-columns: auto auto auto auto;
}



dddd
dddd
4 years ago
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-gap: 10px;
  background-color: #2196F3;
  padding: 10px;
}


.grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid black;
  text-align: center;
  font-size: 30px;
}
dddd
dddd
4 years ago
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity HalfAdder is
    Port ( A : in  STD_LOGIC;
           B : in  STD_LOGIC;
           Sum : out  STD_LOGIC;
           Cout : out  STD_LOGIC);
end HalfAdder;

architecture Behavioral of HalfAdder is

begin

Sum <= A xor B;
Cout <= A and B;

end Behavioral;
dddd
dddd
4 years ago
data class User(val name: String, val age: Int)

fun main(args: Array<String>) {
    val jack = User("jack", 29)
    println("name = ${jack.name}")
    println("age = ${jack.age}")
}