We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Is there a wiki-style "Playground" on this site? [closed]

asked 2012-06-28 06:07:41 +0200

qubit gravatar image

updated 2015-09-12 16:48:00 +0200

Alex Kemp gravatar image

I'd really like a place where I could play around with formatting for this site, the way that many wikis have "Playgrounds" or playground-style pages.

This would make it easier for us to experiment with new types of links or formatting without spamming the front page with nonsense questions or bogus edits.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-19 11:04:33.221612


testing fdo#1234 syntax

qubit gravatar imagequbit ( 2012-06-28 06:07:59 +0200 )edit

you just created one... :-)

cloph gravatar imagecloph ( 2012-07-25 22:14:40 +0200 )edit

Testing comment delay

qubit gravatar imagequbit ( 2013-07-09 17:25:06 +0200 )edit

In-line code: `~/.bashrc`; Bug link: fdo#123456; Internet link: [wikipedia](http://www.wikipedia.org/); Italic text: *italic*; Bold text: **bold**.

oweng gravatar imageoweng ( 2013-07-19 14:06:53 +0200 )edit

@manj_k -- Re: comment syntax, I suggest that we enable the " Same editor as for questions and answers". Thoughts?

qubit gravatar imagequbit ( 2013-07-19 15:28:26 +0200 )edit

@qubit , @oweng – The problem: Every new user can add a comment (no longer restricted with karma points ≥3). [1] – How to keep a check on spam? — [1] how do i create an assocition with windows 8 mailAleBazz's profile.

manj_k gravatar imagemanj_k ( 2013-07-19 15:49:05 +0200 )edit

@manj_k, @oweng -- Yeah, potential for SPAM isn't good. I wonder if there's a way we could give simple comments to users w/karma < 3?

qubit gravatar imagequbit ( 2013-07-19 16:40:52 +0200 )edit

@qubit, @manj_k, I admit that spam is a more difficult issue for an ask site. Over on the alternate forum, where I am an administrator all new and updated posts are clearly visible upon login. I am rather ruthless with spam, deleting all posts and the user account out of hand. Isn't @qubit's idea of a two-tiered comment system (3 points for basic text, 30 points for insert clickable links + formatting) what we have now? Is it just the formatting aspect that is missing?

oweng gravatar imageoweng ( 2013-07-20 03:02:23 +0200 )edit

@oweng, @manj_k -- What do you think about enabling the editor for a while (a week or so) and seeing if SPAM picks up?

qubit gravatar imagequbit ( 2013-07-21 18:05:31 +0200 )edit

@qubit, @manj_k, I am OK with this, but then again I am not an admin (which is fine) so will not see the behind the scenes data if there is any. I will keep an eye on SPAM. Being GMT+10 may mean I don't see as much as others i.e., during peak periods.

oweng gravatar imageoweng ( 2013-07-24 03:00:42 +0200 )edit

15 Answers

Sort by » oldest newest most voted

answered 2013-04-23 01:35:56 +0200

CyanCG gravatar image

It seems that most Markdown implementations allow the definition of reference-style links. Does this work here?

The LibreOffice suite is free software and is cross-platform.

Yes, it does work! The definition of the link is hidden as it should be. It goes like this:

[libo-on-wikipedia]: https://en.wikipedia.org/wiki/LibreOffice "LibreOffice on Wikipedia"
edit flag offensive delete link more



Just to be clear for others, the link text anchor in the above is [LibreOffice][libo-on-wikipedia] which is then followed later by the link citation shown in the code example.

oweng gravatar imageoweng ( 2013-06-02 01:48:42 +0200 )edit

answered 2013-01-28 03:26:37 +0200

jmadero.dev gravatar image

testing this one out

edit flag offensive delete link more


@jmadero.dev -- cool, that worked.

qubit gravatar imagequbit ( 2013-01-28 03:42:41 +0200 )edit

answered 2012-07-30 19:10:43 +0200

qubit gravatar image

quoting styles


foo@bar:~/$ for i in blah; do echo harumph; done
edit flag offensive delete link more

answered 2013-01-28 14:32:16 +0200

manj_k gravatar image

updated 2014-02-16 00:48:40 +0200

Like lightning he darted off to the left right and disappeared between the two warehouses almost falling over the trash can lying in the middle of the sidewalk.

He tried to nervously tap his way along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the way he had come.

test upload.odt

edit flag offensive delete link more


Hey @manj_k, Is there a way to see change-tracking on comments? I poked around, but I didn't seem to find a link for such a thing..

qubit gravatar imagequbit ( 2013-01-28 20:56:20 +0200 )edit

@manj_k -- Oh, and congrats on 4000+ karma :-)

qubit gravatar imagequbit ( 2013-02-19 23:54:12 +0200 )edit

answered 2013-07-19 17:56:06 +0200

manj_k-test gravatar image

updated 2013-07-19 17:58:24 +0200

edit flag offensive delete link more





  1. A
  2. B
  3. C





manj_k gravatar imagemanj_k ( 2013-08-05 21:38:36 +0200 )edit


manj_k-test gravatar imagemanj_k-test ( 2014-01-05 16:08:08 +0200 )edit

answered 2013-01-21 10:38:10 +0200

qubit gravatar image

updated 2013-02-19 23:56:30 +0200

Let's play with code!

Here is some code within backticks(0).

Does this mark as code? I = 5; Hope = 0; So = "period"

Yep, that works. Now for syntax highlighting?

ruby a = 5 puts "Superdog " + 5 a.each{|beach, ball| some = stuff = here puts "is important" }

Nope, doesn't seem to have support for syntax highlighting like on GitHub

Note to self: Maybe just file request w/upstream now...

edit flag offensive delete link more

answered 2013-02-07 05:57:21 +0200

qubit gravatar image

updated 2013-02-07 06:05:45 +0200

New test: URLs that don't want to link!

Ordinary urls like to be linked:

Some URLs don't like to be linked:

Fixes? Workarounds? Hooray!

  • Let's try to use the [ ] ( ) syntax!

  • For the paren on the end, use a backslash "\" to quote just that single character, like this:

    [cheese webcam software](https://en.wikipedia.org/wiki/Cheese_(software\))
  • If the paren is not on the end, can we just slap parens around the whole shebang?

    [cheese webcam software - References section](https://en.wikipedia.org/wiki/Cheese_(software)#References)

Hmm... looks like a no. Let's try escaping that inner r-paren:

    [cheese webcam software - References section](https://en.wikipedia.org/wiki/Cheese_(software\)#References)
edit flag offensive delete link more

answered 2013-01-21 18:17:03 +0200

qubit gravatar image

updated 2013-01-22 03:59:26 +0200

Code commenting styles -- what works, what doesn't work, etc.

    /* Some C-style code */
    #include <stdio.h>

    int main(void) {
      printf("hello, world\n"); /* End of line comment */

C works pretty well.


    // Some Java code
    class HelloLibO {
      public static void main(String[] args) {
        System.out.println("Hello World!"); // End of line comment

Java looks pretty good!

How about Python?

    # A Hello-world function (with some extra stuff thrown in).
    def HelloWorld(s):
        print("Hello world")
        for foo in bar
          if passes(foo)
            print '%s' % foo
            print "Fails!"

Multi-line comments?

    """ Multi-line comment in Python
    probably isn't going to work right now

No, not working too well.

LibreOffice Basic?

    ' This is a Hello World snippet.
    print "Hello, world!"

Hmm... the formatter hates the unclosed single-quote. Let's try again using 'REM'

    REM This is a Hello World snippet.
    print "Hello, world!"

A little better, but the comment is still being highlighted like code, not a comment. Let's try again, using either a C++-style or Bash-style comment.

    REM // This is a Hello World function.
    REM # Hopefully these comments will render as expected!
    Sub Main
      print "Hello, world!" REM # End of line comment.
    End Sub

Here's some more LO Basic as a formatting example (from this question):

    Sub Main
      Set thisBook = ThisComponent
      studentsSheet = thisBook.Sheets.getByName("Students")

      i = 0
        c = studentsSheet.getCellByPosition(0, i)

        REM // Stop creating sheets for students once we find a
        REM // row with no name.
        If c.Type = com.sun.star.table.CellContentType.EMPTY Then
          print "Exiting: Found row with no student name."
          Exit Do

        studentName = c.String
        sNew = thisBook.createInstance("com.sun.star.sheet.Spreadsheet")
        thisBook.Sheets.insertByName(studentName, sNew)
        i = i + 1

      REM // Sanity-check on looping forever. We don't expect 
      REM // to have over 1000 students.
      Loop Until i > 1000
    End Sub

Here's an upstream post about the code behind the syntax highlighting: http://askbot.org/en/question/3026/syntax-highlighting/

Looks like it's https://code.google.com/p/google-code-prettify/

Also see https://google-code-prettify.googlecode.com/svn/trunk/README.html -- looks like it might be possible to pass-along the language name and get a bit better highlighting. We might need to add a new language handler if LO Basic and Visual Basic use a different grammar.

edit flag offensive delete link more


I don't know how it is here, but in StackOverflow, you can put in a comment tag to hint at what language should be used by prettify: <!-- language: lang-c++ -->

syockit gravatar imagesyockit ( 2013-11-20 15:50:38 +0200 )edit

answered 2012-07-25 17:38:14 +0200

qubit gravatar image

Syntax test (fdo#1234) here (@qubit)

edit flag offensive delete link more


Comment on an old answer

qubit gravatar imagequbit ( 2013-01-25 20:49:47 +0200 )edit

new comment with fdo#1234 and blo#2345 in it.

qubit gravatar imagequbit ( 2013-11-13 07:34:23 +0200 )edit

answered 2013-01-29 02:32:48 +0200

qubit gravatar image

Testing linking behavior here:



What other types of linking would be helpful? Possible sites include

  • LO wiki
  • (A)OO bug tracker

It would also be very helpful to be able to have shortcuts for default responses, such as:

  • [fileabug] -> Please file a bug
  • [download] -> Please download the latest build of LibreOffice
  • [needinfo] -> We need more information about your particular question before we can answer you.
edit flag offensive delete link more


The shortcut links would be quite helpful. Hopefully [fileabug] would include the text "file a bug" rather than just "a bug" in the link :-)

oweng gravatar imageoweng ( 2013-06-02 03:21:19 +0200 )edit

Test: fdo#1234

manj_k gravatar imagemanj_k ( 2013-07-11 22:58:24 +0200 )edit

Test: Bug 1234

manj_k gravatar imagemanj_k ( 2013-07-11 22:58:58 +0200 )edit

Test: Bug 1234

manj_k gravatar imagemanj_k ( 2013-07-11 23:07:06 +0200 )edit

Question Tools



Asked: 2012-06-28 06:07:41 +0200

Seen: 2,209 times

Last updated: Feb 16 '14