2
Convert the document text or selection to "Proper Case"
3
e.g. "john doe" becomes "John Doe"
7
function proper_case(s)
8
local s=string.gsub(string.lower(s),"^(%w)", string.upper)
9
return string.gsub(s,"([^%w]%w)", string.upper)
14
local s=geany.selection()
20
geany.selection(proper_case(s))
22
geany.text(proper_case(geany.text()))