If you write this in a forum post: Code: [noparse][xcode=js]var x = 1;[/xcode][/noparse] it will produce this beautiful code: [xcode=js]var x = 1;[/xcode] and lua: Code: [noparse][xcode=lua] your code here [/xcode][/noparse] [xcode=lua] -- This Source Code Form is subject to the terms of the bCDDL, v. 1.1. -- If a copy of the bCDDL was not distributed with this -- file, You can obtain one at http://beamng.com/bCDDL-1.1.txt local M = {} M.values = {} local lastValues = {} local smoothValuesExp = {} M.disabledState = {} local lightsState = 0 local wheelObj = -1 local wheelRadius = 0 local signalRightState = false local signalLeftState = false local signalWarnState = false local blinkPulse = false local blinkTimerThreshold = 0.4 local blinkTimer = 0 local function updateValue(func, smoothing) smoothing = smoothing or 0 if M.disabledState[func] ~= nil then return nil end local val = nil if func == "steering" then local _, h for _, h in pairs (hydros.hydros) do if h.inputSource == "steering_input" then if h.steeringWheelLock and h.hydroDirState then val = -h.hydroDirState * h.steeringWheelLock break else val = -h.hydroDirState break end end end [/xcode] And JSON: Code: [noparse][xcode=json] your code here [/xcode][/noparse] [xcode=json] { "autohide": false, "title": ["UPDATES","STABLE BUILD"], "current" : "0.3.7.6", "content" : [ { "title" : "0.3.7.6", "timestamp" : 1423124516, "type" : "stable", "content" : { "Bugfixes" : {"icon":"bug", "list":[ "Many stability fixes in the physics core", "Fixed cache file loading: prefer non-cached version", "Fixed bug where vehicles could not be dragged around in the editor", "Pressure wheels support hubcaps again", "Disabled action menu for now until it is completely working" ]}, "Vehicle Content" : {"icon":"car", "list":[ "New cubemaps for car reflections", "Thumbnails for all vehicles", "Minor changes to sunburst body kit and rally lights mesh" ]}, "Terrain Content" : {"icon":"world", "list":[ "Overhauled skybox cubemaps for better reflections", "Minor improvements to ECA", "Updated palm trees and textures on DRI" ]} } }, [/xcode] So if you use code, please use this
Python works, even if I am using .NET libraries in this snippet of code: [xcode=python] import clr #common language runtime, notably the actual .NET runtime is known as the CLR #clr.AddReference(System) #Commented out as System is referenced by default from System import Console Console.WriteLine("Hello, World!"); Console.CursorLeft = Console.CursorLeft + 4 from System import ConsoleColor Console.BackgroundColor = ConsoleColor.White Console.ForegroundColor = ConsoleColor.Red Console.WriteLine("From a .NET Console class") print "But good old python print statements still work" Console.ReadKey() Console.ResetColor() Console.Clear() Console.WriteLine("Oh, its not pwettyfull anymore") Console.ReadLine()[/xcode]