I've split my repositories between GitHub and GitLab.
All my Notepad++ plugins are on GitHub
My personal website and some other projects are on GitLab.
IndentByFold Notepad++ plugin
License: GNU General Public License v2.0
Hey!
I have a problem with the feature You call middle folding point.
I use { } as folding separators and use fold by indent plugin to format the code.
However if two separators are on the same line,
due to the 'middle folding point' the code does not format properly.
(Because the folder is now ending one line higher).
Example output:
if{
smt0;
}
if{
smt1;
} else {
smt2;
}
Instead of:
if{
smt1;
} else {
smt2;
}
I have written to UDL about this and they responed:
Hi Matt,
this feature can be blocked only by commenting out part of source code, and then recompiling. But even that wouldn't help much, because code format-er needs to know about "middle" folding points (which represent end of old block and start of the new block in the same line)
I'd recommend to contact author of "Indent by fold" plugin, and ask him to extend his plugin to cover this case.
Folding points in Scintilla are 32-bit integers, and "middle" folding points represent two 16-bit numbers. If I had to guess, I'd say plugin is ignoring upper 16-bits of "middle" folding point.Best regards,
Loreia
So, maybe it is a bug that is easily fixable ?
Cheers!
:)
Hello,
thank you for the good plugin!
Can someone implement a keyboard shortcut?
I think everybody would highly appreciate.
Thank you again.
Regards,
Filippo
Is it possible to place the fold end on a new line and un-indent it? The fold end is auto-compleeted.
If I start a fold and enter I end with (| as cursor)
a {
|}
I would like
a {
|
}
Well, my topic says it all, it only indented what was on the screen, when I scrolled down I saw that the rest was untouched..
Is it correct that Redentbyfiold, only redent's what is in view ?
If so can there be an option to redent complete file ?
If not why is my PHP file not redentend completely
It looks like this right now:
if ($number == 1){
echo 'test';
} else {
echo 'test0';
}
I want it like this:
if ($number == 1){
echo 'test';
} else {
echo 'test0';
}
Besides that, it works great :)
just like the title says an option which disables re-indentation of string content
void UART_puts(char *Output, unsigned int length)
{
uint8_t i;
for(int i=0;i<length;i++)
Output[i] = UART_putc();
}
gets turned into
void UART_puts(char *Output, unsigned int length)
{
uint8_t i;
for(int i=0;i<length;i++)
Output[i] = UART_putc();
}
Basically the same as issue #1 , but for C. whenever there is no curly braces around a piece of code it gets parsed as the top-level indentation, all that's needed is just some exceptions for the flow-control statements.
Hi, this version not working win10 x64 notepad++
When using the plugin for lua it works nicely except for If Then Else blocks where
function onNodeConnectionChange(args)
if entity.isInboundNodeConnected(0) then
storage.inputOpen = entity.getInboundNodeLevel(0)
else
storage.inputOpen = true
end
end
gets turned into
function onNodeConnectionChange(args)
if entity.isInboundNodeConnected(0) then
storage.inputOpen = entity.getInboundNodeLevel(0)
else
storage.inputOpen = true
end
end
This plugin doesn't understand Python files at all, which is understandable, but the issue is that it completely freaks out when I'm editing a Python script so I have to uninstall the plugin and re-enable the default auto-indent feature to switch to Python editing and then do the reverse when changing back to a bracketed language. At least having an option to disable the plugin without uninstalling it would be nice, ideally it would detect .py files and use default auto-indent behavior for them.
Basically the same as issue #1 and #2, but for JS.
function onNodeConnectionChange(args) {
if (entity.isInboundNodeConnected(0)) {
storage.inputOpen = entity.getInboundNodeLevel(0);
} else { // <--- Expected
storage.inputOpen = true;
};
};
get Reindented to:
function onNodeConnectionChange(args) {
if (entity.isInboundNodeConnected(0)) {
storage.inputOpen = entity.getInboundNodeLevel(0);
} else { // <--- Unexpected
storage.inputOpen = true;
};
};
I've tried out indentbyfold to format some C code and it is not ignoring comments such as //{
It treats it as if the code is real and indents the real code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.