Author Topic: Changing options for Astyle plugin  (Read 8438 times)

Offline pir

  • Multiple posting newcomer
  • *
  • Posts: 48
Changing options for Astyle plugin
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Changing options for Astyle plugin
« Reply #1 on: January 11, 2010, 01:13:33 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.

Offline pir

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing options for Astyle plugin
« Reply #2 on: January 11, 2010, 08:30:39 pm »
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

Offline pir

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing options for Astyle plugin
« Reply #3 on: January 11, 2010, 08:41:23 pm »
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


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Changing options for Astyle plugin
« Reply #4 on: January 11, 2010, 09:07:30 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Changing options for Astyle plugin
« Reply #5 on: January 11, 2010, 09:53:03 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.

Offline pir

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing options for Astyle plugin
« Reply #6 on: January 12, 2010, 12:12:37 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?)

... 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.

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.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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Changing options for Astyle plugin
« Reply #7 on: January 12, 2010, 12:29:29 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.

Offline pir

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing options for Astyle plugin
« Reply #8 on: January 12, 2010, 12:37:25 pm »
Killerbot has provided an excellent guide (http://forums.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