Discord
Login
Community
DARK THEME

how you can make that a community post have a code bar

every time i make a community post the code look like this

Quick = if Quick then Quick else object end end

Quick.init = function() background ="rgb(88,162,198)" objects = [] psprites = [] sprites = [] maps = [] gravity = 13 friction = 1 contact_friction = 50 ground = -100 grid = [] fps = 60 avg_dt = 16 last_draw = 0 tick = 0 camera = object x = 0 y = 0 zoom = 1.5

move = function(px,py)
  target = px or py
  target_x = px
  target_y = py
end

end end

how can i fix this

You use tripple ``` as first and last line of the source code you'd like to show

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community