Author Topic: Color Themes - Code::Blocks - Fortran  (Read 11870 times)

Offline atronoush

  • Single posting newcomer
  • *
  • Posts: 7
Color Themes - Code::Blocks - Fortran
« on: January 19, 2018, 09:11:32 am »
Ten color themes for Code::Blocks Fortran language is available at:

https://github.com/kookma/CB-Fortran-Color-Theme

to be used with Fortran plugin in Code::Blocks.

Sample theme:



For Developper

  • An Excel file has been provided to simply create a new theme or customize the current themes. It produces a CSV file which is used by the
    "cb_fortran_colortheme.f90" to make the conf file (generate the xml).
  • It is developed to be used with Fortran plugin in Code::Blocks, so feel free to use and customize it as you wish.


NOTE

  • Excel file can be simply edited to cover other languages like Python, Java, R, ...
  • The fortran file can be modified or rewritten in other language like C


Recommendation

  • It would be great to have these themes included in the new release of Code::Blocks

keywords:
Fortran, Color Themes, Color Scheme, Syntax highlighting

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Color Themes - Code::Blocks - Fortran
« Reply #1 on: January 19, 2018, 10:34:24 am »
Recommendation

  • It would be great to have these themes included in the new release of Code::Blocks
This can happen if the provided theme supports most popular languages (c/c++, php, html, js, python, shell, makefiles, etc). We cannot add a theme for a single language. It is not user friendly.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline atronoush

  • Single posting newcomer
  • *
  • Posts: 7
Re: Color Themes - Code::Blocks - Fortran
« Reply #2 on: January 19, 2018, 10:47:44 am »
The code for generation color theme is open, if other people with knowledge of other popular languages can help, I would be happy to modify themes to cover such popular languages.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Color Themes - Code::Blocks - Fortran
« Reply #3 on: January 19, 2018, 05:02:45 pm »
Sadly the theme color management in codeblocks is a mess... I have tried to create a program to manage the themes easily so for example all comments on all languages use the same color. As far as i understand the colors are managed by ID numbers and all languages use different ID for the same group. For example c++ uses for "line comments" the ID=1 and fortran uses the ID=22 . It seems that they are completely random. I would suggest to try to unify them. Making a list with
TypeID
Line comment1
Block comment2
numeric3
......
This would make things a lot more easy to make "universal" themes. Of course are there language features that are not supported by other languages but we could say that this start with id>100 or something like this... Any thoughts on this?

PS. Also related: https://sourceforge.net/p/codeblocks/tickets/587/

Offline atronoush

  • Single posting newcomer
  • *
  • Posts: 7
Re: Color Themes - Code::Blocks - Fortran
« Reply #4 on: January 19, 2018, 06:18:50 pm »
@BlueHazzard,

 That is quite true! You have to create the same theme for all language one by one and it is far from a programming standard!

The xml file in default.conf has many repeated lines to set for example green color for comment line (you have to repeat it for each language separately). It would be great if a base setting could be set and only those elements dedicated to a specific language defined separately in theme.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Color Themes - Code::Blocks - Fortran
« Reply #5 on: January 20, 2018, 01:26:47 am »
Not possible at the moment because the language elements are dictated by the editor component (scintilla) we're using.
The new version of the component has this thing reworked, but I've not tired it yet.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Color Themes - Code::Blocks - Fortran
« Reply #6 on: January 20, 2018, 10:27:45 pm »
Are you talking about the most recent version of scintilla? With c++14 dependency?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Color Themes - Code::Blocks - Fortran
« Reply #7 on: January 21, 2018, 02:48:53 am »
Yes...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]