Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


JaseNZ

2576 posts

Uber Geek
+1 received by user: 1489

ID Verified
Lifetime subscriber

#281239 6-Feb-2021 21:39
Send private message

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.





Ding Ding Ding Ding Ding : Ice cream man , Ice cream man


Create new topic
freitasm
BDFL - Memuneh
80652 posts

Uber Geek
+1 received by user: 41036

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2648854 6-Feb-2021 23:00
Send private message

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.

 




JaseNZ

2576 posts

Uber Geek
+1 received by user: 1489

ID Verified
Lifetime subscriber

  #2648856 6-Feb-2021 23:11
Send private message

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


freitasm
BDFL - Memuneh
80652 posts

Uber Geek
+1 received by user: 41036

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2648857 6-Feb-2021 23:12
Send private message

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.

 




JaseNZ

2576 posts

Uber Geek
+1 received by user: 1489

ID Verified
Lifetime subscriber

  #2648858 6-Feb-2021 23:15
Send private message

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


ANglEAUT
altered-ego
2436 posts

Uber Geek
+1 received by user: 842

Trusted
Lifetime subscriber

  #2648919 7-Feb-2021 12:18
Send private message

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.


SirHumphreyAppleby
2939 posts

Uber Geek
+1 received by user: 1860


  #2648923 7-Feb-2021 12:33
Send private message

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.


 
 
 

Shop now on AliExpress (affiliate link).
JaseNZ

2576 posts

Uber Geek
+1 received by user: 1489

ID Verified
Lifetime subscriber

  #2648972 7-Feb-2021 13:42
Send private message

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


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.