The Jive forum included a syntax highlighting tool for posting code. Very helpful. There is a phpBB 3.3 plugin that does this sort of thing:
It’s still in BETA but the install/uninstall looks straightforward. Any chance this can be installed so we can take it for a test drive?
matt
June 27, 2021, 12:34pm
2
Notice a little late, but for reference, this has been activated. I don’t know how to use it, but it should let you fotmst code in the post editor box.
To use it, you simply wrap the code in ‘code’ tags and put the name of the programming language as an attribute. So this:
[ code=java]
public class HelloWorld {
public static void main(String args) {
System.out.println(“Hello World!”);
}
}
[ /code]
becomes this:
public class HelloWorld {
public static void main(String[ ]args) {
System.out.println("Hello World!");
}
}
To use it, you simply wrap the code in ‘code’ tags and put the name of the programming language as an attribute. So this:
[ code=java]
public class HelloWorld {
public static void main(String args) {
System.out.println(“Hello World!”);
}
}
[ /code]
becomes this:
public class HelloWorld {
public static void main(String[ ]args) {
System.out.println("Hello World!");
}
}
Pfft…Who still uses Java?..Regardless, this functionality doesn’t work for me…:
[ code=c64]
LOAD"SOLIDWORKS",8,1
[ /code]
Pfft…Who still uses Java?..Regardless, this functionality doesn’t work for me…:
[ code=c64]
LOAD"SOLIDWORKS",8,1
[ /code]
Because c64 is a platform, not a language. Try ‘basic’:
LOAD"SOLIDWORKS",8,1