Ask Your Question
2

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

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

qubit gravatar image qubit flag of United States
5721 3 48 41

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.

delete close flag offensive retag edit

Comments

testing fdo#1234 syntax

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

you just created one... :-)

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

12 Answers

Sort by » oldest newest most voted
1

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

CyanCG gravatar image CyanCG flag of Canada
422 2 7 17
http://waidanian.wordpres...

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"
link delete flag offensive edit
1

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

Astron gravatar image Astron
316 2 5 8

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

link delete flag offensive edit

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 ( 2012-07-25 21:47:05 +0200 )edit

test comment here.

qubit ( 2013-01-28 03:20:11 +0200 )edit
0

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

qubit gravatar image qubit flag of United States
5721 3 48 41

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

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

link delete flag offensive edit

Comments

Comment #1. AAAAnd test!

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

Another one!

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

blah (2x Shift+Enter)

  1. blah

  2. blah

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

Aaa

Bbb

Ccc

manj_k ( 2013-02-12 13:14:06 +0200 )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 ( 2013-02-12 18:09:12 +0200 )edit
0

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

jorendc gravatar image jorendc flag of Belgium
466 6 5

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

link delete flag offensive edit
0

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

qubit gravatar image qubit flag of United States
5721 3 48 41

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!

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

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

qubit gravatar image qubit flag of United States
5721 3 48 41

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

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

jmadero.dev gravatar image jmadero.dev
26 2

testing this one out

link delete flag offensive edit

Comments

@jmadero.dev -- cool, that worked.

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

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

qubit gravatar image qubit flag of United States
5721 3 48 41

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

link delete flag offensive edit

Comments

Comment on an old answer

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

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

qubit gravatar image qubit flag of United States
5721 3 48 41

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.

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.

link delete flag offensive edit
0

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

qubit gravatar image qubit flag of United States
5721 3 48 41

quoting styles

Blockquote

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

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 214 times

Last updated: May 09