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

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 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

( 2012-06-28 06:07:59 +0100 )edit
3

you just created one... :-)

( 2012-07-25 22:14:40 +0100 )edit

Testing comment delay

( 2013-07-09 17:25:06 +0100 )edit

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

( 2013-07-19 14:06:53 +0100 )edit

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

( 2013-07-19 15:28:26 +0100 )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.

( 2013-07-19 15:49:05 +0100 )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?

( 2013-07-19 16:40:52 +0100 )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?

( 2013-07-20 03:02:23 +0100 )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?

( 2013-07-21 18:05:31 +0100 )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.

( 2013-07-24 03:00:42 +0100 )edit

Sort by » oldest newest most voted

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"

more

1

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.

( 2013-06-02 01:48:42 +0100 )edit

Below every post there's a live preview ... that should help, no?

more

Not all content is rendered in the preview of answers (e.g. @-links and (iirc) bug links, etc..). Also comments don't have a live preview, and we need a playground or testing area so we can use it for testing bugs (e.g. fdo#52489)

( 2012-07-25 21:47:05 +0100 )edit

test comment here.

( 2013-01-28 03:20:11 +0100 )edit

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!

[http://productforums.google.com/forum/#!topic/docs/S6IkdnuH91E](http://productforums.google.com/forum/#!topic/docs/S6IkdnuH91E)

• 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)

more

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.

Java?

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


Java looks pretty good!

    # 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
else:
print "Fails!"


    """ 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
Do
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
EndIf

studentName = c.String
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/

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.

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++ -->

( 2013-11-20 15:50:38 +0100 )edit

fdo#1234

#fd1234

• 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
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 :-)

( 2013-06-02 03:21:19 +0100 )edit

Test: fdo#1234

( 2013-07-11 22:58:24 +0100 )edit

Test: Bug 1234

( 2013-07-11 22:58:58 +0100 )edit
( 2013-07-11 23:03:23 +0100 )edit

Test: Bug 1234

( 2013-07-11 23:07:06 +0100 )edit

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

more

( 2013-01-25 20:49:47 +0100 )edit

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

( 2013-11-13 07:34:23 +0100 )edit

Comment formatting

Geneva, 14 March 2013. At the Moriond Conference today, the ATLAS and CMS collaborations at CERN’s Large Hadron Collider (LHC) presented preliminary new results that further elucidate the particle discovered last year.

I wish I could work at better understand the science of the LHC.

This is an embedded graphic (site banner):

more

Quotation: >... preliminary new results that further elucidate the [Higgs Boson] particle Deleted text: Is the standard model imbalanced in need of balancing?

( 2013-07-20 05:04:18 +0100 )edit

Quotation (2 new lines): >... preliminary new results that further elucidate the [Higgs Boson] particle

( 2013-07-20 05:05:11 +0100 )edit

Quotation (html notation): >... preliminary new results that further elucidate the [Higgs Boson] particle

( 2013-07-20 05:06:43 +0100 )edit

Test of formatting: ~/.bashrc, fdo#123456, wikipedia, italic, bold, @User.

( 2013-08-20 07:52:47 +0100 )edit

more

To display “verbatim” (code, input etc) content, either surround the text with backticks   or indent each line of the text block by four spaces or more.

( 2013-06-12 06:11:24 +0100 )edit

Testing out how long it takes to post a new answer!

Let's put at least a little content in here...

more

Comment #1. AAAAnd test!

( 2013-01-25 20:48:28 +0100 )edit

Another one!

( 2013-01-25 20:49:02 +0100 )edit

blah (2x Shift+Enter)

1. blah

2. blah

( 2013-02-12 13:09:16 +0100 )edit

Aaa

Bbb

Ccc

( 2013-02-12 13:14:06 +0100 )edit

Hey @manj_k, I'm now hanging out in #libreoffice-ask on freenode. It's not an official channel, but it'll work if anyone wants to chat :-)

( 2013-02-12 18:09:12 +0100 )edit

I'm just testing the moderation queue for @qubit ;-)

more