Ask Your Question
2

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

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

qubit gravatar image

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

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

Comments

testing fdo#1234 syntax

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

you just created one... :-)

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

Testing comment delay

qubit gravatar imagequbit ( 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**.

oweng gravatar imageoweng ( 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?

qubit gravatar imagequbit ( 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.

manj_k gravatar imagemanj_k ( 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?

qubit gravatar imagequbit ( 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?

oweng gravatar imageoweng ( 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?

qubit gravatar imagequbit ( 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.

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

15 Answers

Sort by » oldest newest most voted
1

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

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

Comments

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.

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

answered 2012-07-25 21:41:16 +0100

Astron gravatar image

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

edit flag offensive delete link more

Comments

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)

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

test comment here.

qubit gravatar imagequbit ( 2013-01-28 03:20:11 +0100 )edit
0

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

qubit gravatar image

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

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)
edit flag offensive delete link more
0

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

qubit gravatar image

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

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!

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

Comments

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 +0100 )edit
0

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

qubit gravatar image

Testing linking behavior here:

fdo#1234

#fd1234

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

Comments

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 +0100 )edit

Test: fdo#1234

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

Test: Bug 1234

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

Test: Bug 1234

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

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

qubit gravatar image

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

edit flag offensive delete link more

Comments

Comment on an old answer

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

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

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

answered 2013-07-20 05:00:57 +0100

oweng gravatar image

updated 2013-07-25 08:46:07 +0100

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.

Image linking and embedding

This is a link to an uploaded image.

This is an embedded graphic (site banner):

LO banner

edit flag offensive delete link more

Comments

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

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

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

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

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

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

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

oweng gravatar imageoweng ( 2013-08-20 07:52:47 +0100 )edit
0

answered 2013-06-11 09:37:12 +0100

froz gravatar image

How to add a "code" to the answer?

edit flag offensive delete link more

Comments

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.

CyanCG gravatar imageCyanCG ( 2013-06-12 06:11:24 +0100 )edit
0

answered 2013-01-25 20:46:49 +0100

qubit gravatar image

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

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

edit flag offensive delete link more

Comments

Comment #1. AAAAnd test!

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

Another one!

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

blah (2x Shift+Enter)

  1. blah

  2. blah

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

Aaa

Bbb

Ccc

manj_k gravatar imagemanj_k ( 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 :-)

qubit gravatar imagequbit ( 2013-02-12 18:09:12 +0100 )edit
0

answered 2013-02-07 12:54:50 +0100

jorendc gravatar image

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

edit flag offensive delete link more

Question Tools

2 followers

Stats

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

Seen: 1,779 times

Last updated: Feb 16 '14