News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Changing options for Astyle plugin

Started by pir, January 11, 2010, 12:50:15 PM

Previous topic - Next topic

pir

I want to use the Whitesmith code formatting style. (No religious wars, please!) Can I change the option? Is there somewhere I can specify the "--style=whitesmith " command line option to Astyle?

(Also, it would be nice if whitesmith and the other missing couple of formatting options (banner and stroustrup)were added to the Settings->Editor->Source formatter dialog :D)

Peter

Jenna

Quote from: pir on January 11, 2010, 12:50:15 PM
I want to use the Whitesmith code formatting style. (No religious wars, please!) Can I change the option? Is there somewhere I can specify the "--style=whitesmith " command line option to Astyle?

(Also, it would be nice if whitesmith and the other missing couple of formatting options (banner and stroustrup)were added to the Settings->Editor->Source formatter dialog :D)

Peter

Which version of C::B do you use ?

Actual versions of C::B (aka nightlies) have Allmann(Ansi), Java,  K&R, Stroustrup, Whitesmith, Banner, Gnu, Linux, Horstmann and the users custom-style.

pir

I am using Version 8.02.

Nice to hear the nightlies now include these other formatting styles. Just need to work-out how to install a  nightly build in Ubuntu...

Peter

pir

Am I right in thinking that the nightly builds are only available for Windows? In which case, back to my original question: Can I configure things to pass the whitesmith option to the Astyle plugin?

Peter


MortenMacFly

Quote from: pir on January 11, 2010, 08:41:23 PM
Am I right in thinking that the nightly builds are only available for Windows?
No. Read the forum (every nightlies thread) more carefully.
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]

Jenna

Quote from: MortenMacFly on January 11, 2010, 09:07:30 PM
Quote from: pir on January 11, 2010, 08:41:23 PM
Am I right in thinking that the nightly builds are only available for Windows?
No. Read the forum (every nightlies thread) more carefully.
Or my signature.

The debian packages on my server can also be used on ubuntu, but on karmic (9.10) you can not use the wxWidgets 2.8.10 shipped with ubuntu, you have to use the one from apt.wxidgets.org .
Or use the ubuntu packages provided by xaviou.

pir

Quote from: MortenMacFly on January 11, 2010, 09:07:30 PM
No. Read the forum (every nightlies thread) more carefully.
Ah! Fair point. The fact that Linux nightlies are 'unofficial' has thrown me. They are only mentioned a good way down.

I have looked at the stuff suggested by Jens but I am now confused! (Maybe my relative newness to Linux?)

Quote from: jens on January 11, 2010, 09:53:03 PM
... you can not use the wxWidgets 2.8.10 shipped with ubuntu, you have to use the one from apt.wxidgets.org .
On the wxWidgets stuff, I can see nothing for Karmic (which I'm using) and nothing newer than version 2.8.10.1 which I already have.

Quote from: jens on January 11, 2010, 09:53:03 PM
Or use the ubuntu packages provided by xaviou.
Where from? Google throws up a number of sites, most with very out-of-date stuff. I have found http://lgp203.free.fr/ubuntu/?showdetail=30#pub30-row with a load of packages from svn6023... but what to install? It's not clear. (Presumably I don't need the dev stuff. But what do I need?)

Killerbot has provided an excellent guide (http://forums.next.codeblocks.org/index.php/topic,3232.msg25548.html#msg25548) to installing the Windows nightlies. What would be really great is if sombeody could do likewise for the Linux nightlies (by distribution!) at a similar level of detail :D.

Peter

Jenna

Quote from: pir on January 12, 2010, 12:12:37 PM
Quote from: jens on January 11, 2010, 09:53:03 PM
... you can not use the wxWidgets 2.8.10 shipped with ubuntu, you have to use the one from apt.wxidgets.org .
On the wxWidgets stuff, I can see nothing for Karmic (which I'm using) and nothing newer than version 2.8.10.1 which I already have.

As far as I know, you can use the jaunty repo and force the use from there (simpliest way in synaptic with Strg+E).

For the ubuntu-repo look here: http://lgp203.free.fr/spip/spip.php?article1

It's provided by pasgui, Xaviou "only" creates the 64-bit versions (also in pasgui's repo as far as I know).

Sorry for the misinformation.

pir

Quote from: pir on January 12, 2010, 12:12:37 PM
Killerbot has provided an excellent guide (http://forums.next.codeblocks.org/index.php/topic,3232.msg25548.html#msg25548) to installing the Windows nightlies. What would be really great is if sombeody could do likewise for the Linux nightlies (by distribution!) at a similar level of detail :D.

Doh! Just discovered http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu in the Wiki hanging-off the link Jens suggested!!!!

Peter