I need to convert same variables to uppercase|lowercase|captalize.
/**
* @package ${1 default="Hello"}
* @subpackage ${com}_${1 capitalize=false}
* @copyright Copyright (C) 2012 ${AtomTech}, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
How can I do this?
Uppercase
${name?upper_case}
Lowercase
${name?lower_case}
Capitalize
${name?capitalize}
Netbeans uses FreeMarker for its template language. The documentation specific to your request is on the page about strings.
Is very easy to solve it, see:
${1/(.+)/\L\1/g}
${var_name/regex/format_string/options}
var_name = 1
regex = (.+)
format_string = \L\1 (can use l|L|u|U)
options = g
See more in http://sublimetext.info/docs/en/reference/snippets.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With