Might be a stupid question but is there a code option within the BBcode ??
Just for putting up snippets of code etc.
Just curious if there is one and if not why.
|
|
I don't know... Like, have you even tried?
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Operators</h2>
<p>In this example, y is incremented before it is assigned to x (pre-incremented).</p>
<p id="demo1"></p>
<p id="demo2"></p>
<script>
var y = 5;
var x = ++y;
document.getElementById("demo1").innerHTML = y;
document.getElementById("demo2").innerHTML = x;
</script>
</body>
</html>
Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies
Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.
Sorry may not have explained myself properly.
More sort of like this.
[ code] What ever code you want to put in [ /code]

Ding Ding Ding Ding Ding : Ice cream man , Ice cream man
You mean not only change to a fixed spacing font but have it in a small window that people could copy, etc?
Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies
Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.
freitasm:
You mean not only change to a fixed spacing font but have it in a small window that people could copy, etc?
Is handy being able to do a single click to copy.
The rest is just aesthetics really to show its code.
Ding Ding Ding Ding Ding : Ice cream man , Ice cream man
Back in the day, dfnt asked about "Bug: [code][/code] tags stripped when editing post"
I too asked a similar question previously, but can't find that thread now. 😶
Please keep this GZ community vibrant by contributing in a constructive & respectful manner.
JaseNZ:
freitasm:
You mean not only change to a fixed spacing font but have it in a small window that people could copy, etc?
Is handy being able to do a single click to copy.
The rest is just aesthetics really to show its code.
It's not entirely aesthetics. Copying and pasting your prime programme reminded me how much I hate Python with white space being meaningful. A straight copy and paste into vi didn't work due to the indentation.
SirHumphreyAppleby:
It's not entirely aesthetics. Copying and pasting your prime programme reminded me how much I hate Python with white space being meaningful. A straight copy and paste into vi didn't work due to the indentation.
Yup very true on that.
Either way it is a handy option to have to be able to put up code.
Ding Ding Ding Ding Ding : Ice cream man , Ice cream man
|
|