Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratchblocks tag: name?
- blob8108
- Scratcher
1000+ posts
Scratchblocks tag: name?
I'm vaguely hacking on adding the scratchblocks tag to the forums, in order to push the code to the ST on Github.
Should the tag be called [blocks] or [scratchblocks]? I prefer the former ‘cos it’s shorter, but I can see an argument for using the latter, as it's familiar.
Thoughts?
EDIT: Forget I said anything, looks like nXIII's already implemented it…
Should the tag be called [blocks] or [scratchblocks]? I prefer the former ‘cos it’s shorter, but I can see an argument for using the latter, as it's familiar.
Thoughts?
EDIT: Forget I said anything, looks like nXIII's already implemented it…
Last edited by blob8108 (Aug. 9, 2013 14:54:31)
- Hardmath123
- Scratcher
1000+ posts
Scratchblocks tag: name?
I vote for [blocks], but my preference is [code scratch]/[code snap].
- Hardmath123
- Scratcher
1000+ posts
Scratchblocks tag: name?
clear
… or not …
Last edited by Hardmath123 (Aug. 9, 2013 14:50:04)
- blob8108
- Scratcher
1000+ posts
Scratchblocks tag: name?
Aha! It would seem he's pushed to Github, but they haven't updated the server yet.
Forget I said anything!
Forget I said anything!
- nXIII
- Scratcher
1000+ posts
Scratchblocks tag: name?
I implemented it, we haven't quite deployed it yet. I stuck with [scratchblocks] so that we didn't have to explain the change to everyone.
- blob8108
- Scratcher
1000+ posts
Scratchblocks tag: name?
Mmm, I figured that might happen. Thanks for implementing it! I stuck with [scratchblocks] so that we didn't have to explain the change to everyone.
Do you know how hard it might be to update it in future?
- nXIII
- Scratcher
1000+ posts
Scratchblocks tag: name?
You'd have to do it manually—I just stuck the contents of build/ in static/. It might be worth adding scratchblocks2 as a submodule and then symlinking part of it into static/, though.Mmm, I figured that might happen. Thanks for implementing it! I stuck with [scratchblocks] so that we didn't have to explain the change to everyone.
Do you know how hard it might be to update it in future?
- jTron
- Scratcher
100+ posts
Scratchblocks tag: name?
Actually worked on a Scratch lexer for pygments a bit ago-easy enough, really, it can just look at a bunch of regexes-but gave up when I realized I couldn't easily do custom colors, because pygments relies on predefined styles: I vote for [blocks], but my preference is [code scratch]/[code snap].
class DefaultStyle(Style): background_color = "#f8f8f8" default_style = "" styles = { Whitespace: "#bbbbbb", Comment: "italic #408080", Comment.Preproc: "noitalic #BC7A00", #Keyword: "bold #AA22FF", Keyword: "bold #008000", Keyword.Pseudo: "nobold", Keyword.Type: "nobold #B00040", Operator: "#666666", Operator.Word: "bold #AA22FF", Name.Builtin: "#008000", Name.Function: "#0000FF", Name.Class: "bold #0000FF", Name.Namespace: "bold #0000FF", Name.Exception: "bold #D2413A", Name.Variable: "#19177C", Name.Constant: "#880000", Name.Label: "#A0A000", Name.Entity: "bold #999999", Name.Attribute: "#7D9029", Name.Tag: "bold #008000", Name.Decorator: "#AA22FF", String: "#BA2121", String.Doc: "italic", String.Interpol: "bold #BB6688", String.Escape: "bold #BB6622", String.Regex: "#BB6688", String.Symbol: "#B8860B", #String.Symbol: "#19177C", String.Other: "#008000", Number: "#666666", Generic.Heading: "bold #000080", Generic.Subheading: "bold #800080", Generic.Deleted: "#A00000", Generic.Inserted: "#00A000", Generic.Error: "#FF0000", Generic.Emph: "italic", Generic.Strong: "bold", Generic.Prompt: "bold #000080", Generic.Output: "#888", Generic.Traceback: "#04D", Error: "border:#FF0000" }
But if anyone else wants to help with that, I got half started. And I made a sample file for testing.
The double (()), [[]], and <<>> around stuff is for the “hole” and the “block” because of my limited regex skillz and because of coloring (?). Also, I included most of the [something v] along with their related [something] because I wasn't sure if I wanted to interpret the “v” differently. I don't. Another note: I forgot a bunch of “ secs” after wait blocks, would need to be fixed.
- scimonster
- Scratcher
1000+ posts
Scratchblocks tag: name?
Could we also have [blocks] as a shortcut, because i often mess up typing out [scratchblocks]?
Retired Community Moderator
BTW, i run Google Chrome 41.0.2272.101 on a Linux system - Ubuntu 14.04. NEW: iPad 4th gen. w/retina.
418 I'm a teapot (original - to be read by bored computer geeks)
THE GAME (you just lost)
; THE SEMICOLON LIVES ON IN OUR SIGS
- Hardmath123
- Scratcher
1000+ posts
Scratchblocks tag: name?
+1+1 Could we also have [blocks] as a shortcut, because i often mess up typing out [scratchblocks]?
- davidkt
- Scratcher
1000+ posts
Scratchblocks tag: name?
+1+1+1 Could we also have [blocks] as a shortcut, because i often mess up typing out [scratchblocks]?
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- hello_smile
- Scratcher
1000+ posts
Scratchblocks tag: name?
Wow! I'm vaguely hacking on adding the scratchblocks tag to the forums, in order to push the code to the ST on Github.
Should the tag be called [blocks] or [scratchblocks]? I prefer the former ‘cos it’s shorter, but I can see an argument for using the latter, as it's familiar.
Thoughts?
EDIT: Forget I said anything, looks like nXIII's already implemented it…
hello_smile
Achievement: Rickrolled ogadaki.
set [alternate account] to [hello-smile]
hello-smile Signature logo shop
v86
The key to 1000 messages is following hundreds of forum topics.
I am tired of everyone hating on me!
Windows 11 Release
- wvj
- Scratcher
1000+ posts
Scratchblocks tag: name?
Please don't necropost, this topic is 8 years oldWow! I'm vaguely hacking on adding the scratchblocks tag to the forums, in order to push the code to the ST on Github.
Should the tag be called [blocks] or [scratchblocks]? I prefer the former ‘cos it’s shorter, but I can see an argument for using the latter, as it's familiar.
Thoughts?
EDIT: Forget I said anything, looks like nXIII's already implemented it…
- Discussion Forums
- » Advanced Topics
- » Scratchblocks tag: name?