Author Topic: HELP: settings directly in ini-files  (Read 13526 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: HELP: settings directly in ini-files
« Reply #15 on: June 16, 2011, 01:56:03 pm »
1.49.818

- New flag is added to settings.xml which controls commenting style. Details....

Quote from: request (slightly modified wording)
Q:
when commenting out a large block of code, blank lines are skipped over (leaving them uncommented)
Would it be possible that all lines in a block being commented out regardless of their content (blanks or not)? 

For example:
// Lorem ipsum dolor sit amet
// Lorem ipsum dolor
//
// Lorem ipsum dolor sit
// Lorem ipsum dolor

instead off:
// Lorem ipsum dolor sit amet
// Lorem ipsum dolor

// Lorem ipsum dolor sit
// Lorem ipsum dolor


A:
I understood the reason, have not thought about this when implementing the feature... Skipping of lines was even more work, than not skipping :)
I can provide an XML flag, that control this, with default to old behavior. If more people will like it, default can be changed or flag will come to UI settings.


  To enable commenting of empty lines too, add into <Formatting> section (of data\settings.xml) following key:

Code: XML
  1. <Formatting>
  2.         <CommentEmptyLines>true</CommentEmptyLines>
  3. </Formatting>
« Last Edit: July 23, 2011, 04:13:51 am by alex »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: HELP: settings directly in ini-files
« Reply #16 on: July 23, 2011, 04:13:22 am »
to disable auto indenting of text after paste you can use following XML flag in settings.xml:
Code: XML
  1. <Formatting>
  2.    <IndentAfterPaste>false</IndentAfterPaste>
  3. </Formatting>
  4.  

by default it is enabled and not shown, so to disable paste new value inside Formatting node.


Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: HELP: settings directly in ini-files
« Reply #17 on: July 28, 2011, 03:20:35 am »
you can modify default number of recent files stored in workspace by direct change of configuration file hippoedit.config

Default is:
Code: XML
  1. <RecentFileCount>10</RecentFileCount>

you can change value from 1 to 16. Currently 16 is max limit but maybe some when will be increased.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Alternative formatting for joining of lines (from 1.49.822)
« Reply #18 on: August 11, 2011, 04:57:07 pm »
By default, command Join Lines does not add extra space between lines fragment.
You can activate alternative way and add this extra scape (if line does not end with space already) using this flag in settings.xml:
Code: XML
  1. <Formatting>
  2.    <JoinLinesWithSpace>true</JoinLinesWithSpace>
  3. </Formatting>

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Disable auto complete in find/replace fields of Search Dialog
« Reply #19 on: January 23, 2012, 03:31:30 am »
While there are controversial opinions about such feature: some request it as very useful, others think it is annoying, I have decided to make auto complete behaviour optional.
But, while I think this is very tiny adjustment, I do not want to put this in UI options, to make them even more complex. So, comes new XML flag.



file settings.xml in data directory.
Code: XML
  1. <Dialogs>
  2.     <SearchAutoComplete>false</SearchAutoComplete>
  3. </Dialogs>


default value for search autocompletion is true (default values are skipped in xml files).

Important: this flag available from 1.50 version

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
2279 Views
Last post April 20, 2009, 09:36:34 pm
by Arthur
3 Replies
1613 Views
Last post July 29, 2009, 05:24:54 pm
by alex
1 Replies
2035 Views
Last post August 01, 2009, 12:13:07 pm
by alex
4 Replies
1641 Views
Last post July 12, 2010, 03:29:41 am
by luxxon
2 Replies
1831 Views
Last post June 25, 2011, 12:02:56 am
by RickF