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\$ – Draco18s no longer trusts SE Dec 21 '17 at 23:22
  • \$\begingroup\$ Thank you for your reply... \$\endgroup\$ – BeginnerDev Dec 21 '17 at 23:34
  • \$\begingroup\$ But I didn't understand how it work... \$\endgroup\$ – BeginnerDev Dec 21 '17 at 23:34
  • \$\begingroup\$ What do I do if I'm not using a desktop??? \$\endgroup\$ – BeginnerDev Dec 21 '17 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 '17 at 0:54

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 .