Dinner Coding Time logo, a very stylized D

Contributing Guidelines

These guidelines are intended to:

Of course, you're not beholden to them. There are some things that I'll enforce (which will all be noted), but the vast majority is up to you. I trust you <3

Style

Alice & Bob

If you need example names for an explanation or for code (e.g. 'the Student object is named x'), please use these (in no particular order):

Why?

Alice, Bob, Carol, and Dan are standard example names. If you go further into the alphabet (e.g. Eve), then they start to have special meanings-- 'Eve' is 'the eavesdropper'. In order to have more names and to have a distinct feel to DCT examples, I came up with Sam, Quin, Otis, and Elle. If you want more information, you can read about it on Wikipedia here :)

Grammar

Just... generally make sure that people can read it. You don't have to adhere to any standard :)

Demeaning & Discouraging Language

Some words will nearly always be read as patronising or confusing. Implying that an assignment is 'simple' or 'basic' when someone has been having trouble is incredibly discouraging for them. Please do not use these thoughtlessly.

If you have a usage, please read it through to make sure. These words aren't bad; they're just used a lot. I trust you to use them well.

Advanced Features

Markdown!!!

Want formatting in your annotations? You can use Markdown! It's just like the formatting that Discord and Reddit use. For more detail, see this cheat sheet

HTML!

If you want to embed HTML into your annotations for more control, you can do that. However, the list of tags available is severely limited.

When using any illegal elements, your annotations will be rejected by the preview system and trimmed when published.

Globally allowed styles

You can style elements with CSS.

CSS styles may only be applied by putting them in the style property.

Style Attribute Format
background-colorcolor
colorcolor
border-radiuspixel units only, 0px-9px
border-top-colorcolor
border-top-styleword
border-top-widthpixel units only, 0px-9px
border-right-colorcolor
border-right-styleword
border-right-widthpixel units only, 0px-9px
border-bottom-colorcolor
border-bottom-styleword
border-bottom-widthpixel units only, 0px-9px
border-left-colorcolor
border-left-styleword
border-left-widthpixel units only, 0px-9px

Some elements have other styles allowed too! See below for all allowed elements.

Allowed elements

Allowed Element Allowed Attributes Allowed Styles
SVG
PATH d fill, stroke
A target, rel, href
P
SPAN class, data-address, data-annotation-connector-id. AUTO-GENERATED IDs ONLY
S
B
STRONG
I
EM
U
CODE
PRE
DIV class -- 'annotation' only
TABLE
TBODY
TH
TR
TD
HR
H1
H2
H3
H4
H5
H6
BR