0
votes

This post exists purely to house answers formerly attached to the formatting sandbox. You can safely ignore it.

locked by Shog9 May 16 '17 at 19:56

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. See the help center for guidance on writing a good question.

Read more about locked posts here.

625 Answers 625

0
votes

def self.queued Sidekiq::Stats.new.enqueued end

def self.queued
  Sidekiq::Stats.new.enqueued
end

[code] def self.queued Sidekiq::Stats.new.enqueued end [/code]

def self.queued
  Sidekiq::Stats.new.enqueued
end
def self.queued
  Sidekiq::Stats.new.enqueued
end
  • 1
    Good to see you around Sam! :D – ShaWiz Jun 23 '14 at 7:25
0
votes

Is VB comment syntax highlighting working?

Sub AMethod()
    'a comment
    Dim SomeCode
End Sub
'A comment
Sub AMethod()
   Dim SomeCode
End Sub

Boo that meta hides the colors :(

  • (@Joel, see my edit in the question about syntax highlighting.) – Arjan Jan 12 '11 at 12:52
0
votes

Testing code formatting assssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
asfasfas
gdagf
Testing code formatting assssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
asfasfas
gdagf
0
votes

Duplicating Python3's print() function is easy. Make a function that takes an argument, named whatever you want, then print that argument when the function is invoked from the interpreter. Easy.

def println(stringint):
    print stringint

Here's how you'd invoke it in your interpreter with the argument.

>>> import <filename>
>>> <filename>.println("Hello, this is a test.")
Hello, this is a test.
>>> <filename>.println(12 / 2 + 6)
12

You can also invoke it like this, without having to add the filename.

>>> from <filename> import println
>>> println("Hello, this is a test.")
Hello, this is a test.
>>> println(12 / 2 + 6)
12

There you have it, a duplicate of Python3's print() function. Yay.

0
votes

Testing Japanese spacing.

〇一二三四五六七八九十 <--- 1-10

 一 三 五 七 九  <--- by 2s, japanese space

一 三 五 七 九  <--- by 2s, western space

ひらがなカタカナ漢字単語

 らがな タカナ 字単語

0
votes
  1. List item

    Code block 
    
  2. Second list item, which unfortunately doesn't look like it's second which now looks like it's second

  • @BartoszKP see now. ;) – ShaWiz Jul 27 '14 at 21:12
  • @ShadowWizard Nice, thanks :) – BartoszKP Jul 27 '14 at 21:53
0
votes

This is some text above a h1.

This is a h1

This is some text under a h1.

This is some text above a h2.

This is a h2

This is some text under a h2.

This is some text above a h3

This is a h3

This is some text under a h3.

0
votes

Testing @@ServerName for errors

0
votes

Links support URIs without scheme and hostname.

What is on topic here?

What is [on topic](/help/on-topic) here?

But relative URIs are not OK.

What have you tried comment

[What have you tried comment](#comment772983_3122)

  • But links do not support URIs without scheme and hostname in comments: What is on topic here? Why that? Relative URIs are still unsupported: [what have you tried comment](#comment772983_3122) – Palec Aug 30 '14 at 11:07
0
votes

Experiment on behavior of hard tabs in the answer box.

Indented with "format code" button:

int main(void)
{
    do_this();
    do_that();
    if (condition)
        do_other();
    return 0;
}

Indented manually, adjusting only the lines that "belong" at the left edge:

int main(void)
{
do_this();
do_that();
if (condition)
    do_other();
return 0;
}

Both look exactly the same in the editing <textarea>, in a browser that doesn't support -moz-tab-size:4.

0
votes

✓ Unicode works in a Heading

  • ✓ Bullet works in a Heading

Multiple bullets with visible and invisible text

      • -These are bullets
      • -
  • Bullet like this too


  • 1. Blockquote your bullets

  • kbd did not break the bullets

    equal symbol below this text made it bold

    • no more blockquote bullet

Some more experiments:

  • ✓ In Bullets, it works

      • ✓ Bullet inside bullet works
      • ✓ Bullet inside bullet works (numbers are auto-adjusted)
      • ✓ Bullet inside bullet works
      • Sub bullet works
    1. Sub-bullet doesn't break the auto-numbering
    2. One more bullet

      1. Empty dash below this makes it bold

0
votes

{{Infobox file format | name = | icon = | iconcaption = | icon_size = | screenshot = | screenshot_size = | caption = | extension = | mime = | type code = | uniform type = | conforms to = | magic = | developer = | released = | latest release version = | latest release date = | genre = | container for = | contained by = | extended from = | extended to = | standard = | free = | url = }}

0
votes

Page 1 of 904625697166532776746648320380374280100293470930272690489102837043110636675

  • [Page 1 of 904625697166532776746648320380374280100293470930272690489102837043110636675](htt‌​p://directory.io/) – fredley Oct 6 '14 at 9:22
0
votes
#include <iostream>
#include <string>
#include <vector>

template<typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& vec)
{
    for (auto& el : vec)
    {
        os << el << ' ';
    }
    return os; // emphasized
}

"string literal"
std::string s = "std::string"
'\n'
0
votes

This is probably not the intended use of this tag since Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

0
votes

This is a test of mixed tabs and spaces.

This line starts with four spaces.
This line starts with a tab.
    This line starts with four spaces and is indented with a tab.
    This line starts with a tab and is indented with four spaces.
    This line starts with four spaces and is indented with four spaces.
    This line starts with a tab and is indented with a tab.

aaa

0
votes

Testing to see if broken bold markdown fails the same way it does in chat:

行こうかどうしようか = 行こうか**??か**

「許さない、(許さないのは)絶対にだ!」 → 「 許さない、絶対にだ!」

0
votes

this is a test this is only a test
placeholdit

0
votes

Normal, plain t'xt with "varying" punctuation marks.
Code highlighted t'xt with "varying" punctuation marks.

0
votes
Foo! comment no workie! -->
  • ??????????????? – user278469 Jan 31 '15 at 20:34
0
votes

[meta-tag:anything-without,punctuation]

0
votes

Heading 1

Testing

Heading 2

Testing

Heading 3

Heading 3 (actually just regular bold text, for comparison to the Heading 3 style)

0
votes

exampleCode()

exampleCode()

0
votes

On this question the OP was greeted by a barrage of mixed comments, both positive and negative.

In response to that the OP edited the question to add a link to a post that holds an answer that doesn't work for him. After that the OP decided to delete his question.1

Here is a screenshot for <10K:

Screenshot

I searched for a possible answer and the ones I found (even on off-site resources) are incomplete at best and the link to a possible duplicate provide in the comments leads to an almost link-only answer that I'm happy to flag.

Can we undelete1 the question so a proper answer can be provided? Or am I getting mellow?

1. The question has been undeleted since, closed and then re-opened.

0
votes

[tag:ᅚ]

(Just messing with invisible characters)

0
votes

linktest

google <-- [google](www.google.com)

Not converted as it should IMHO.

google <-- [google](//www.google.com)

Has the drawback that the link target depends on my way of accessing this site. That's of course no problem for Google but may be for most other sites that don't provide SSL.

google <-- [google](http://www.google.com)

That's the way. Proper link with scheme.

  • if you're after protocol less URL, you have to add only // to the beginning of the URL. – ShaWiz Feb 15 '15 at 12:37
  • @ShadowWizard Thanks! This serves as demonstration for github.com/waylan/Python-Markdown/issues/388. I actually think it's good that the first version is not converted into a relative link as every other Markdown implementation out there seems to be doing. – musiKk Feb 15 '15 at 12:41
  • Cheers, Jeff (who probably wrote the code used to this day of the markdown editor) is well known for being strict and making sure everything makes sense, so credit goes to him. :-) – ShaWiz Feb 15 '15 at 12:51
0
votes

Testing <kbd> formatting:

Lowercase l, Number 1, Upper I:
l 1 I

Uppercase L, Number 1, Upper I:
L 1 I

Perhaps forcing caps would reduce ambiguity?

0
votes

MMMMMEEEEEEEEEEEEEEEEEEEEEEEEEEEEE TOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooop0000000000000000000000000000! testing captacha

0
votes

Testing -123- TEST TESTING

0
votes

To get a large image you must remove the trailing s, like this:

Open the image in a new tab and change the image url from:

  http://i.stack.imgur.com/xxxxxs.png

to

  http://i.stack.imgur.com/xxxxx.png

With white background:

RH WH TR SN RX H+ He

Without background:

RH WH TR SN RX H+ He

SVG Links:

Red Heart
White Heart
Trace
Snake
℞ (Drugs)
H+ (Hospital) He (for Health)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .