I'm trying to post somethings in LibGdx code format in this site (I'm new here), but I can't do it...

Can anybody help me, please?

  • \$\begingroup\$ Ctrl-K will indent code and create a code block. \$\endgroup\$ Dec 21, 2017 at 23:22
  • \$\begingroup\$ Thank you for your reply... \$\endgroup\$ Dec 21, 2017 at 23:34
  • \$\begingroup\$ But I didn't understand how it work... \$\endgroup\$ Dec 21, 2017 at 23:34
  • \$\begingroup\$ What do I do if I'm not using a desktop??? \$\endgroup\$ Dec 21, 2017 at 23:36
  • \$\begingroup\$ Please read the help center, it goes over the options. If you don’t have a traditional keyboard or your mobile layout doesn’t show he appropriate UI you can always just type the Markdown in directly. \$\endgroup\$
    – user1430
    Dec 22, 2017 at 0:54

1 Answer 1


Surround the text you want with backticks and will appear as inline code.

Put four spaces in front of each line of text
    you want to appear
        as a block of code. 

You can click the "edit" link under this post to see exactly what the post content looks like.

There are also buttons you can press above the text edit area, some of which have key mappings. Control-K will create code blocks for selected text, for example; pressing the {} button above the text box does the same thing.

This section of the Help Center explains the formatting features in more detail.


You must log in to answer this question.

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