This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-05 02:45:19

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

BBCode [code] tag improvements for the ATs

Ok, here are my three BBCode [code] tag improvements:

1. [code=bbcode] disables BBCode in it, but that's it.
2. [code=color] allows the [color] tag only, to highlight certain parts.
3. [code=js]Creates a link with a javascript:() url (bookmarklet).

Oh, and maybe rolling the mouse over the code well should select all of the code.

Last edited by Hardmath123 (2011-11-05 12:18:56)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2 2011-11-05 03:53:20

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

I love these ideas! Maybe this should go in suggestions, though?  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-11-05 08:50:24

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

I wanted to hear the Advanced Scratchers' opinions, as they are more valuable as pertaining to this particular suggestion. If it's generally well-liked, I'll suggest these there.

Really, you don't think a Minecraft lover in Miscellaneous would need syntax highlighting, do you?  tongue


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4 2011-11-05 09:14:56

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Wow, this would be an improvement.  big_smile
Also, how about a line number in the beginning of each line?

Offline

 

#5 2011-11-05 09:19:27

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

ProgrammingFreak wrote:

Wow, this would be an improvement.  big_smile
Also, how about a line number in the beginning of each line?

I don't like that. Then the line numbers get copied and when you paste the code you get errors.

Besides, why do we need line numbers?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6 2011-11-05 09:59:58

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Hardmath123 wrote:

ProgrammingFreak wrote:

Wow, this would be an improvement.  big_smile
Also, how about a line number in the beginning of each line?

I don't like that. Then the line numbers get copied and when you paste the code you get errors.

Besides, why do we need line numbers?

Line numbers that don't get copied are actually an incredible idea!
I'm just thinking of one person that always asks people for PHP errors on line X, and wants us to count the lines -_-

Offline

 

#7 2011-11-05 10:04:28

resistance
Scratcher
Registered: 2011-10-30
Posts: 100+

Re: BBCode [code] tag improvements for the ATs

they should also consider updating the script blocks

new smilies would also be cool


hand in mine into your icy blues, and then i'd say to you we could take to the highway with this trunk of ammunition too, i'd end my days with you in a hail of bullets

Offline

 

#8 2011-11-05 10:27:42

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

This belongs in Suggestions, rather than Advanced Topics. But fear not! I shall move it for you.  smile

Offline

 

#9 2011-11-05 10:39:44

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

LS97 wrote:

Hardmath123 wrote:

ProgrammingFreak wrote:

Wow, this would be an improvement.  big_smile
Also, how about a line number in the beginning of each line?

I don't like that. Then the line numbers get copied and when you paste the code you get errors.

Besides, why do we need line numbers?

Line numbers that don't get copied are actually an incredible idea!
I'm just thinking of one person that always asks people for PHP errors on line X, and wants us to count the lines -_-

Well, most websites have a link you click to popup a plain version of it to copy. Or others have a link to automatically copy it.  big_smile

Offline

 

#10 2011-11-05 11:50:38

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

ProgrammingFreak wrote:

LS97 wrote:

Hardmath123 wrote:


I don't like that. Then the line numbers get copied and when you paste the code you get errors.

Besides, why do we need line numbers?

Line numbers that don't get copied are actually an incredible idea!
I'm just thinking of one person that always asks people for PHP errors on line X, and wants us to count the lines -_-

Well, most websites have a link you click to popup a plain version of it to copy. Or others have a link to automatically copy it.  big_smile

Ok... I guess maybe putting the code in a separate div than the line numbers, then adding the attrib onmouseover="this.select()" should do the trick.

How about [monospace] for a piece of code within a normal piece of text, like the attribute I mentioned in the sentence above?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#11 2011-11-05 14:07:36

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

LS97 wrote:

I'm just thinking of one person that always asks people for PHP errors on line X, and wants us to count the lines -_-

[name removed by moderator-specific names not needed to make the point, don't go starting a flame  hmm ]tongue

Last edited by Paddle2See (2011-11-08 09:56:06)

Offline

 

#12 2011-11-05 14:43:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Hardmath123 wrote:

ProgrammingFreak wrote:

LS97 wrote:


Line numbers that don't get copied are actually an incredible idea!
I'm just thinking of one person that always asks people for PHP errors on line X, and wants us to count the lines -_-

Well, most websites have a link you click to popup a plain version of it to copy. Or others have a link to automatically copy it.  big_smile

Ok... I guess maybe putting the code in a separate div than the line numbers, then adding the attrib onmouseover="this.select()" should do the trick.

How about [monospace] for a piece of code within a normal piece of text, like the attribute I mentioned in the sentence above?

Or what about using OL tag?  tongue

I likez!

Offline

 

#13 2011-11-05 18:10:27

catfan8
Scratcher
Registered: 2008-07-23
Posts: 500+

Re: BBCode [code] tag improvements for the ATs

LS97 wrote:

Hardmath123 wrote:

ProgrammingFreak wrote:

Wow, this would be an improvement.  big_smile
Also, how about a line number in the beginning of each line?

I don't like that. Then the line numbers get copied and when you paste the code you get errors.

Besides, why do we need line numbers?

Line numbers that don't get copied are actually an incredible idea!
I'm just thinking of one person that always asks people for PHP errors on line X, and wants us to count the lines -_-

We need line numbers that don't get copied to live!


http://mag.racked.eu/cimage/i9002/Sword-In-Back+get%21/HEROBRINE+Y+U+NO+EXIST/mca.png

Offline

 

#14 2011-11-06 01:14:19

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

I guess syntax highlighting is asking for too much...?
And [code=html] could have a "view in frame" button.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#15 2011-11-06 03:52:34

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

the [code=bbcode] idea is actually not neccersery because you can acctually do this:
[ur[i][/i]l=some_link]text[/url]
will produce
[url=some_link]text[/url]
or you don't need to use [i][/i] you can use [b][/b] or any empty bbcode.

Last edited by joefarebrother (2011-11-06 03:53:30)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#16 2011-11-06 05:06:46

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

joefarebrother wrote:

the [code=bbcode] idea is actually not neccersery because you can acctually do this:
[ur[i][/i]l=some_link]text[/url]
will produce
[url=some_link]text[/url]
or you don't need to use [i][/i] you can use [b][/b] or any empty bbcode.

Ok, now imagine I need to share the entire BBCode of the Block Library home page, and italicize the third line? Sounds... tiring.  hmm

Oh, you misspelled necessary.  tongue


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#17 2011-11-06 05:25:51

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Hardmath123 wrote:

I guess syntax highlighting is asking for too much...?

Actually, we could use this.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#18 2011-11-09 07:42:39

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Bump.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#19 2011-11-14 06:44:30

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Hardmath123 wrote:

Bump.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#20 2011-11-14 16:13:54

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: BBCode [code] tag improvements for the ATs

Hardmath123 wrote:

Ok, here are my three BBCode [code] tag improvements:

1. [code=bbcode] disables BBCode in it, but that's it.
2. [code=color] allows the [color] tag only, to highlight certain parts.
3. [code=js]Creates a link with a javascript:() url (bookmarklet).

Oh, and maybe rolling the mouse over the code well should select all of the code.

1. You could always use the code tags.
2. I don’t understand. Are you saying it allows certain parts to be colored and bold? But you can already do that.
3. This would cause the page to load A LOT longer, and that was one of the reasons Scratch put a limit on signature sizes.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer