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. More info: help center.

Read more about locked posts here.

625 Answers 625

1
vote

Testing an HTML link:

http://wayback.archive.org/web/*/http://onemillionpeople.com

Testing a markdown link:
(Presumably it is automatically URL encoded?)

Link entered using the toolbar option: works great!

1
vote

! Spoiler block testing! Hello world

! Spoiler block testing! Test me

!Spoiler block testing! Yet Another test

! Spoiler block testing!

Hello world

Spoiler block testing!

Test me

Spoiler block testing!

Yet Another test


block with paragraph breaks testing-  

Spoiler block testing!
 √√√√√√√√√√√√√√√√√√√√√√√                                                                                                                               hm, It's cheating I know...

1
vote

  • Is this off the edge?
    • Orange you glad I didn’t say banana again – Ry- Nov 20 '13 at 18:35
    1
    vote
    1
    vote
    1. a

      b

    c

    bug?

    1. b

      c

    d

    no bug

    1
    vote

    asd
    : as asd
    asds...............

    • Just in case: using newlines (two spaces after a line) rather than proper paragraphs, is rarely appropriate... ;-) – Arjan Sep 17 '13 at 16:52
    1
    vote

    Notification test for the android app. Please add comments.

    • here is a comment – user000001 Sep 24 '13 at 11:51
    • Not notified :( – user000001 Sep 24 '13 at 11:52
    • Can you notify yourself? – Uooo Sep 24 '13 at 12:06
    • @Uooo I just got the notification on the phone. Thanks. Can't see the answer on the phone though due to this bug – user000001 Sep 24 '13 at 12:09
    • Do you need some more notifications? :D – Uooo Sep 24 '13 at 12:14
    • @Uooo Not it is ok thanks :) – user000001 Sep 24 '13 at 12:15
    1
    vote
    public void test() {
         String temp = "MyOddCodeTest";
         int idx = 0;
     }
    

    Here's a spoiler'd code block that looks like a quote:

    ! function foo() { var bar = "hi"; }

    Here's a spoiler'd code block that looks like code:

    public void test(){
        String temp = "MySpoilerCodeTest";
        int idx = 0;
    }

    1
    vote
     int i = 0;
    

    Testing editor I thing

    1
    vote

    enter image description here

    Let there be animation!

    • 1
      Indeed. I noticed this recently. – tombull89 Jan 24 '14 at 18:59
    1
    vote

    This is a test of spoilers.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    and links http://google.com

     <a rel="nofollow" target="_blank" href="http://loremipsum.net/">http://loremipsum.net/</a>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, <a rel="nofollow" target="_blank" href="http://loremipsum.net/">http://loremipsum.net/</a> sed diam nonu 
     <!-- blah -->
    
    1
    vote

    foo foo\foo\ foo foo

    filler text

    • foo foo\foo` foo foo` – Stijn Jul 3 '14 at 9:17
    • foo foo\foo\` foo foo` – Stijn Jul 3 '14 at 9:41
    • foo foo\foo\` foo foo – Stijn Jul 3 '14 at 9:42
    • foo foo\foo\\` foo foo` – Stijn Jul 3 '14 at 9:43
    1
    vote

    “This question has more than 30 answers.” You don’t say.

    class Line
    {
        virtual int num() = 0;
    };
    
    1
    vote

    await something;

    • <code>**await** something</code> – svick Nov 5 '14 at 1:08
    1
    vote

    lollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollol

    1
    vote

    Testing Capital letters in link addresses. Motivation: Links beginning with a capital letter are hidden when post is submitted.

    Testing normal:

    http://stackoverflow.com
    

    http://stackoverflow.com

    Testing Http

    Http://stackoverflow.com
    

    Testing Https

    Https://stackoverflow.com
    

    Testing Ftp

    Ftp://example.com
    

    Testing a nonexistent protocol

    DoesNotExist://example.com
    

    DoesNotExist://example.com

    Testing ALL CAPS:

    HTTP://example.com
    

    Testing rEVERSE cAPITALIZATION:

    hTTP://www.example.com
    

    Testing capital only in Domain:

    http://Www.example.com
    

    http://Www.example.com

    Http://stackoverflow.com

    1
    vote

    updated this is an all small case answer without punctuation

    1
    vote
    This is a test of the answers being sent from Stack-Mode

    I want to ensure that the markdown is properly formatted and accepted.

    (defun test-answer-message (me)
      (message "%s created an answer" me))
    

    Code block above

    • Bullet point
    • Another point

      1. And an ordered point
      2. Ordering

    Stack-Mode can be found here. This should provide the desired output.

    • EEEEEEEEEEE :D :D :D :D :D :D – Sean Allred Nov 17 '14 at 15:32
    1
    vote

    NEw cApatcha testing...........

    • wwwwwwwwwwwwwwwwwwwwaaaaaaaaaaaaaaaaaatttttttttttttt – o̊ǝʇ̲ ɐW⃗ Mar 8 '15 at 0:03
    1
    vote

    ‮testing

    ‮testing

    ‮testing

    &#8238;testing

    ‮testing

    ‮testing

    [tag:‮testing]

    1
    vote

    This answer is rendering weird:

    screenshot

    But doesn't repo here

    Code, inside a link, inside a superscript block

    With Markdown

    Note - Superscripted link with code.

    Without Markdown

    Note - Superscripted link with code.

    1
    vote

    Blocking & spoiling some text....

    Hello!

    Test:

    Why is there a grey box even when the text in this spoiler is "Hidden"??
    Test: THIS_TEXT_IS_SURROUNDED_WITH_BACTICKS,BUT IT DOESN"T WORK :(

    TEST

    But this does:THIS_TEXT_IS_SURROUNDED_WITH_BACTICKS,BUT IT DOES<s>N'T</s> WORK :)

    But then, the strike doesn't work!!

    Nor does the smiley in the above>! spoiler

    Nor does the spoiler in the above quote

    Nor does the ..........................................

    test

    Hiding in spoiler....or is it? BOO!

                                                                                   

    blah blah

    Why is the above blockquote sooooo

    small

    ?

    Note book:



































    Button oooooovvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvveeeeeeeeeeeeeeeeeeeeeerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffllllllllllllllllllllllllllllllllllloooooooooooooooooooooooooooooooowwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww!

    1
    vote

    Someone said code was broken, but I don't believe him.

    So this is a test.
    

    Test complete. Status: SUCCESS

    • 2
      Oh, he specifically said comments. So let's try that. – MBraedley Jun 18 '15 at 17:49
    1
    vote

    wow‮serverfault.com/questions/419407/…‮

    Is this to encourage users to delete posts here, so as not to be so pestered by edit notifications?

    No.

    • Is there some kind of bot that changes these automatically? – user234810 Nov 15 '15 at 22:09
    • 2
      @nicael Is this to encourage users to delete posts here, so as not to be so pestered by edit notifications? – user234810 Nov 15 '15 at 22:16
    1
    vote

    using $$ in a post causes strange number series to appear

     
    /* ImageFilter.JS
     *
     * Dependencies:
     *  - Browser Environment
     *  - Fabric.js - fabricjs.com
     *  - jQuery
     *  - Vex - github.hubspot.com/vex
     */
     
    (function(global) {
        "use strict";
       
        global.ImageFilter = {
            defaultOptions: {
                imageCallback: function(){}
            }
        };
        /* polyfills */
        var extend = jQuery.extend;
     
        function $(selector, el) {
            if (typeof selector !== "string") {
                return selector;
            };
            if (!el) { el = document; }
            return el.querySelector(selector);
        }
     
        function $$(selector, el) {
            if (!el) { el = document; }
            return Array.prototype.slice.call(el.querySelectorAll(selector));
        }
        /* end of polyfills */
        var ImageFilter = function() {
            if (!global) {
                throw new Error("window not found.");
            }
            if (!fabric) {
                throw new Error("Fabric.JS not found.");
            }
            if (!jQuery) {
                throw new Error("jQuery not found.");
            }
            if (!vex) {
                throw new Error("Vex not found");
            }
            this.defaultOptions = {};
            this.CANVAS_ID = "#_IFCanvas";
            this.filters = {
                'sepia': new fabric.Image.filters.Sepia(),
                'brightness100': new fabric.Image.filters.Brightness({ brightness: 100 }),
                'grayscale': new fabric.Image.filters.Grayscale()
            };
            $$("[data-imagefilter]", document).forEach(function($el) {
                $el.addEventListener("click", function() {
                    global.ImageFilter.loadImage(this.dataset["imagefilterImage"]);
                });
            });
        };
        ImageFilter.version = "1.0";
        ImageFilter.prototype.loadImage = function(imageSrc) {
            var image = new Image;
            image.src = imageSrc;
            var canvas = document.createElement("canvas");
            canvas.id = this.CANVAS_ID.replace("#", "");
            canvas.width = image.width + 30;
            canvas.style.left = "50%";
            canvas.height = image.height + 20;
            var container = document.createElement('div');
            var ul = document.createElement('ul');
            ul.classList.add('theme-style-none');
            Object.keys(this.filters).forEach(function(filter){
                var li = document.createElement('li');
                var a = document.createElement('a');
                a.href = "#";
                a.text = filter;
                a.setAttribute('data-imageFilter-filter', filter);
                li.appendChild(a);
                ul.appendChild(li);
            })
           
            container.appendChild(canvas);
            container.appendChild(ul);
           
            var CANVAS_ID = this.CANVAS_ID;
            if (this.defaultOptions.imageCallback){
                var callback = this.defaultOptions.imageCallback;
            }
            vex.dialog.open({
                message: "",
                buttons: [
                    extend({}, vex.dialog.buttons.YES, {
                        text: "Done"
                    }), extend({}, vex.dialog.buttons.NO, {
                        text: "Back"
                    })
                ],
                contentCSS: {
                    "width": canvas.width + 20 + "px"
                },
                input: container
            }).bind("vexClose", function() {
                var imageData = $(CANVAS_ID).fabric.toDataURL('png');
                callback(imageData, imageSrc);
            });
     
            self.canvas = new fabric.Canvas(CANVAS_ID.replace("#", ""));
            $(CANVAS_ID).fabric = self.canvas;
     
            self.incomingImage = image;
            var imgInstance = new fabric.Image(image);
            imgInstance.selectable = false;
            self.canvas.selection = false; // disable group selection
            self.canvas.add(imgInstance);
            this.canvas = self.canvas;
           
            $$("[data-imageFilter-filter]").forEach(function($el){
                $el.addEventListener("click", function() {
                    global.ImageFilter.applyFilter(this.dataset["imagefilterFilter"]);
                });
            });
        };
        ImageFilter.prototype.applyFilter = function(filter){
            console.log(arguments);
            var currentObject = this.canvas.getObjects()[0];
            currentObject.filters = [];
            currentObject.filters.push(this.filters[filter]);
            currentObject.applyFilters(
                this.canvas.renderAll.bind()
            );
        };
        window.onload = function() {
            global.ImageFilter = new ImageFilter();
        };
     
    })(window);

    /* DEMO.CSS */
    body
    {
        background-color: RGBA(80, 80, 67, .7);
    }
    img {
        border-style: solid;
        border-width: 4px;
        border-color: black;
        width: 75px;
        height: 75px;
    }
    a {
        padding-left: 4px;
    }
    /* END DEMO.CSS */
    /* imagefilter.css */
    .vexContent {
        width: auto;
        height: auto;
    }
    #_IFCanvas {
        display: inline-block;
    }
    .canvas-container {
        margin: auto;
    }
    .theme-style-none {
        list-style-type: none;
    }
    /*END IMAGEFILTER.CSS*/
    

    vex.defaultOptions.className = "vex-theme-os"; server = { upload: function(){ console.log(arguments); } } ImageFilter.defaultOptions.imageCallback = server.upload();

    1
    vote

    $(function() {
      alert($('body').length);
    });
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

    You must log in to answer this question.

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