Originally Posted by Seerah
pastebin links are fine. But we cannot vouch for the security of downloads from external sites, hence the rule.
/edit: pastebin (or similar) links are actually great - because then we can see line numbers and someone else can put up a reply to your code.
|
Similar post layouts can be done here as well if you use the [highlight=lua] wrapper around your code.
Example:
lua Code:
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event, ...) if f[event] then return f[event](self, event, ...) end end)
f:RegisterEvent("ADDON_LOADED")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:RegisterEvent("UNIT_EXITED_VEHICLE")
f:RegisterEvent("PLAYER_TALENT_CHANGED")
f:Show()