
free no registration needed.
do you like it? please leave feedback

http://sl5.it/SL5_preg_contentFinder/ex ... e_code.php
Thanks makes me happyjoedf wrote:Very nice, AutoHotkey prettify
Code: Select all
while (x = y) {
something()
somethingelse()
}
Code: Select all
while (x = y)
{
something()
somethingelse()
}
Code: Select all
; thats SL5net_small Version 0.1 Indent-Style
if(doIt)
{
if(doIt)
{
if ( next )
Check
else
Check = 5
if ( next )
{
Send,5b{Right 5}
}}}
Code: Select all
; thats SL5net_small+ NotRecommended Indent-Style
if(doIt){
if(doIt){
if ( next )Check
else
Check = 5
if ( next ){
Send,5b{Right 5}
}}}
Code: Select all
; thats free Indent-Style - like SL5net_small it dosent change the signature or body begin. your free to do it manually ;)
if(doIt)
{
if(doIt)
{
if ( next )
Check
else
Check = 5
if ( next )
{
Send,5b{Right 5}
}
}
}
Code: Select all
If (0<Ct)
Code: Select all
If (0<InStr(LisO,Labl . "/"))
download it here: https://github.com/sl5net/SL5_preg_cont ... Source.phpsamzz wrote: ...
Is it possible to download this tool to use it offline? How?
Maybe you can fix this "bug". Thanks in advance and regards.
sam
Code: Select all
<?php
include_once("SL5_preg_contentFinder.php");
.....
$cf = new SL5_preg_contentFinder($file_content);
$cf->setBeginEnd_RegEx($old_open, $old_close);
$cf->setSearchMode('dontTouchThis');
$actual = $cf->getContent_user_func_recursive(
function ($cut, $deepCount, $callsCount, $posList0, $source1) use ($conf, $arguments, $new_open_default, $new_close_default, $charSpace, $newline, $indentSize, $getIndentStr) {
if ($cut['middle'] === false) return $cut;
$indentStr = $getIndentStr(1, $charSpace, $indentSize);
if (!isset($posList0['begin_end'])) $posList0['begin_end'] = strlen($source1);
$start = '' . substr($source1, $posList0['begin_begin'], $posList0['begin_end'] - $posList0['begin_begin']) . '';
$end = '' . ltrim(substr($source1, $posList0['end_begin'], $posList0['end_end'] - $posList0['end_begin'])) . '';
if ($conf['noNewlineAtEnd']) {
$doNoNewlineAtEnd = preg_match("/\W[}\s]*\}\R*$/ms", $cut['middle'], $m);
if ($doNoNewlineAtEnd)
$cut['middle'] = rtrim($cut['middle']) . '';
}
$cut['middle'] = implode($newline . '' . $indentStr, preg_split("/(\R)/m", $cut['middle']));
$cut['middle'] = '' . rtrim($start) . '' . $newline . '' .
$indentStr . '' . trim($cut['middle']) . '';
if ($conf['noNewlineAtEnd'] && $doNoNewlineAtEnd) {
$cut['middle'] .= $end . '' . $cut['behind'] . '';
} else {
$cut['middle'] .= $newline . '' . $end . '' . $cut['behind'] . '';
}
return $cut;
});
SL5 wrote: ↑11 Jul 2015, 07:40online converter for converting your autohotkey code into pretty indented source code.
free no registration needed.
do you like it? please leave feedback![]()
http sl5.it /SL5_preg_contentFinder/examples/AutoHotKey/converts_your_autohotkey_code_into_pretty_indented_source_code.php Broken Link for safety
Return to “Other Utilities & Resources”
Users browsing this forum: No registered users and 3 guests