zadow
Member
One thing i really would like implimented, into the toolbar, is code bar
with numbers in the left, just like code editors.
So when in my forum , that have coding learning section, one could say
in line ( exampel ) 20 the code is bad.
Further i found two phpbb BBcode that does just that , and i would love
to have in my forum.
First is Pastebin.
Again this is PHPBB BBCODE so not sure it will help.
But you get the idea.
Code:
BBCODE USAGE:
[pastebin]{IDENTIFIER}[/pastebin]
HTML REPLACEMENT:
<script src="http://pastebin.com/embed_js.php?i={IDENTIFIER}"></script>
HELP LINE:
[pastebin]ID from your code[/pastebin]
The thing is that Paste bin, highlight different kind of code.
User would know, what value it the code mean.
Example in this forum.
Code:
#include <iostream>
int main()
{
using namespace std;
int carrots; // declare an integer variable
carrots = 25; // assign a value to the variable
cout << "I have ";
cout << carrots; // display the value of the variable
cout << " carrots.";
cout << endl;
carrots = carrots - 1; // modify the variable
cout << "Crunch, crunch. Now I have " << carrots << " carrots." << endl;
No code is highlighted.
But this is standard in all forums, so no suprice.
Other option is more advance, but have the plus, that the gist pasties, can be used strait
in Github
Well more advance maybe, just that you have to register to Paste.
This is PHPBB BBCODE so not sure it will help.
Code:
BBCODE USAGE
[gist]{URL}[/gist]
HTML REPLACEMENT:
<script src="{URL}.js"> </script>
HELP LINE:
[gist]URL to GIST page[/gist] Example: https://gist.github.com/1343518[/CODE
Would also be usefull, with all the code this forum have.
What do you guys/ladys think