Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Tips and tricks: E-mail alerts, formatting, account settings

sebastiaansebastiaan Posts: 2,856
edited March 2013 in Miscellaneous

Overview

E-mail alerts/ subscribing to a topic

In order to subscribe to a single topic (so you will get E-mail notifications for new posts) you can click on the big yellow star to the right of the topic title. For more advanced auto-subscribe options, go to Account -> E-mail subscriptions.

Account settings (avatar, signatures, etc.)

You can configure your account by clicking on 'Account' in the top panel.

Formatting

The forum supports Markdown extra syntax.

Links, bold, italic, etc.

[OpenSesame](http://osdoc.cogsci.nl) will be shown as "OpenSesame"

*Some text* will be shown as "Some text"

**Some text** will be shown as "Some text"

Code snippets

Short code snippets that are part of a text:

This text has a `code_snippet()` in it ... will be shown as ... "This text has a code_snippet() in it".

Blocks of code:

~~~ .python
def my_function():
    print 'Python code'
~~~

... will be shown as ...

def my_function():
    print 'Python code'

You can also use http://www.pastebin.com or http://gist.github.com to embed code snippets. For an explanation, see the boxes below.

pastebin.com
[pastebin:fW2Vmmhb]

gist.github.com:
[gist:3504321]

Quotes

> This will be quoted

... will be shown as ...

This will be quoted

There's much bigger issues in the world, I know. But I first have to take care of the world I know.
cogsci.nl/smathot

Comments

  • timotimo Posts: 21
    edited 9:42PM

    Hey everyone!

    I had trouble to use the code snippet function. Could someone plaease explain it for Dummies? :-P

    best regards,
    timo

  • sebastiaansebastiaan Posts: 2,856
    edited 9:42PM

    Hi Timo,

    The best way to embed snippets of code in the text is with the ~~~ syntax, like so:

    ~~~ .python
    def some_function():
        pass
    ~~~
    

    This will be rendered as:

    def some_function():
        pass
    

    Does that clear things up? So the forum will automatically interpret the ~~~ characters as indicating a code snippet. The .python is optional and indicates that you want Python syntax highlighting.

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.