News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code Alignment Tool

Started by DarrenClark, October 04, 2009, 04:08:59 AM

Previous topic - Next topic

ollydbg

Quote from: danselmi on December 08, 2009, 10:55:58 PM
A friend of mine changed the Aligner plugin:

  • don't add a newline at the end of a "new aligned" block
  • possibility to add other chars/strings to align to
  • store/load the most used chars/strings in the config.


Thanks!!!

should do changes in two places to let it build successfully under MinGW.

First, the include path should be

..\..\..\include\wxscintilla\include


second

In line 245 of Aliger.cpp, the statement should be
control->SetSelection(pos_start, pos_end);
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

MortenMacFly

Quote from: ollydbg on December 09, 2009, 06:00:42 AM
First, the include path should be
..\..\..\include\wxscintilla\include
[...]
control->SetSelection(pos_start, pos_end);
Notice that he seems to use the scintilla branch. There it is correct as the include path has moved and the method call, too.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ollydbg

Thanks for the hint. I noticed that there are two branches currently been developed.

One is
svn://svn.berlios.de/codeblocks/branches/wxpropgrid_debugger

and the other is
svn://svn.berlios.de/codeblocks/branches/scintilla

:D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

danselmi

I have one futher improvement:
In Aligner.cpp replace both find_first_of by Find so it will search for the whole string to align to(not only the first char).
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Quote from: MortenMacFly on December 17, 2009, 07:58:34 AM
Any chances that this may migrated into the EditorTweaks plugin (see here: http://forums.next.codeblocks.org/index.php/topic,11540.msg79486/topicseen.html#msg79486)???

danselmi gave me a patch for the EditorTweaks plugin to include this feature. I've already committed the code and plan to add danselmi and DarrenClark to the list of authors (unless someone tells me otherwise).
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

MortenMacFly

Quote from: dmoore on April 29, 2010, 05:57:57 AM
I've already committed the code and plan to add danselmi and DarrenClark to the list of authors (unless someone tells me otherwise).
Excellent. Good news. :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]