incrementing version or date/time when saving

  • bill, 9th Feb 2012 4:59 am

    I don't know if this is available in tools or not and am not sure
    enough of what I want to post this in authoring or tools:

    I would like to have a version number incremented when saving,
    something inconspicuous like v:xxxx that is in the html so that
    when there is an error it is easy to find out which version of
    the page/scrip is in error.

    I suppose that inserting a date/time would be ok too:
    201202061423
    but I would prefer the 4 digit version number.

    I know I can do this manually, but when in development I save
    about every 2 minutes and always forget to to the increment.

    What do people think of this idea and any ideas on how to
    implement it ?

    bill

    • HTML-Kit Support, 9th Feb 2012 8:05 am

      Hi Bill,

      On 2/9/2012 4:59 AM, bill wrote:

      I don't know if this is available in tools or not and am not sure
      enough of what I want to post this in authoring or tools:

      This is a perfectly good posting for htmlkit.treehouse :)

      I would like to have a version number incremented when saving,
      something inconspicuous like v:xxxx that is in the html so that when
      there is an error it is easy to find out which version of the
      page/scrip is in error.

      I suppose that inserting a date/time would be ok too:
      201202061423
      but I would prefer the 4 digit version number.

      I know I can do this manually, but when in development I save about
      every 2 minutes and always forget to to the increment.

      What do people think of this idea and any ideas on how to implement
      it ?

      bill

      HTML-Kit Tools can automatically update date/time for you when you save
      a document. You can set it up this way:

      1. Open a HTML document and place caret inside <head>...</head> section.

      2. Select "Edit > Extra > Insert Document Settings Block" from the main
        menu.

      3. Check "Add date/time label" and click "OK."

      Now the datestamp will automatically update when you save.

      To get a date/time-based version number like 201202061423, you can
      change datestamp format to:

       <datestamp format="yyyyMMddhhmm" />
      

      Hope this helps.

      Chami

      • bill, 9th Feb 2012 8:20 am

        On 2/9/2012 9:05 AM, HTML-Kit Support wrote:

        Hi Bill,

        On 2/9/2012 4:59 AM, bill wrote:

        I don't know if this is available in tools or not and am not sure
        enough of what I want to post this in authoring or tools:

        This is a perfectly good posting for htmlkit.treehouse :)

        I would like to have a version number incremented when saving,
        something inconspicuous like v:xxxx that is in the html so that
        when
        there is an error it is easy to find out which version of the
        page/scrip is in error.

        I suppose that inserting a date/time would be ok too:
        201202061423
        but I would prefer the 4 digit version number.

        I know I can do this manually, but when in development I save
        about
        every 2 minutes and always forget to to the increment.

        What do people think of this idea and any ideas on how to
        implement
        it ?

        bill

        HTML-Kit Tools can automatically update date/time for you when
        you save a document. You can set it up this way:

        1. Open a HTML document and place caret inside <head>...</head>
          section.

        2. Select "Edit > Extra > Insert Document Settings Block" from
          the main menu.

        3. Check "Add date/time label" and click "OK."

        Now the datestamp will automatically update when you save.

        To get a date/time-based version number like 201202061423, you
        can change datestamp format to:

        <datestamp format="yyyyMMddhhmm" />

        Hope this helps.

        Chami

        That works for the file, but even removing the comment block, it
        will not display because the tag <datestamp is not recognized by FF.
        I want a simple versioning number that will display on the page.
        Note: I am using AJAX to load program fragments into divs, no
        "head" section, but that should not matter a bit.

        • HTML-Kit Support, 9th Feb 2012 8:48 am

          On 2/9/2012 8:20 AM, bill wrote:

          On 2/9/2012 9:05 AM, HTML-Kit Support wrote:

          Hi Bill,

          On 2/9/2012 4:59 AM, bill wrote:

          I don't know if this is available in tools or not and am not sure
          enough of what I want to post this in authoring or tools:

          This is a perfectly good posting for htmlkit.treehouse :)

          I would like to have a version number incremented when saving,
          something inconspicuous like v:xxxx that is in the html so that
          when
          there is an error it is easy to find out which version of the
          page/scrip is in error.

          I suppose that inserting a date/time would be ok too:
          201202061423
          but I would prefer the 4 digit version number.

          I know I can do this manually, but when in development I save
          about
          every 2 minutes and always forget to to the increment.

          What do people think of this idea and any ideas on how to
          implement
          it ?

          bill

          HTML-Kit Tools can automatically update date/time for you when
          you save a document. You can set it up this way:

          1. Open a HTML document and place caret inside <head>...</head>
            section.

          2. Select "Edit > Extra > Insert Document Settings Block" from
            the main menu.

          3. Check "Add date/time label" and click "OK."

          Now the datestamp will automatically update when you save.

          To get a date/time-based version number like 201202061423, you
          can change datestamp format to:

          <datestamp format="yyyyMMddhhmm" />

          Hope this helps.

          Chami

          That works for the file, but even removing the comment block, it will
          not display because the tag <datestamp is not recognized by FF.
          I want a simple versioning number that will display on the page.
          Note: I am using AJAX to load program fragments into divs, no "head"
          section, but that should not matter a bit.

          You have to keep the comment block inserted in step #2 and keep
          <datestamp format="yyyyMMddhhmm" /> tag inside the comment. It's not
          meant to be exposed outside the comment so FF or any other browser won't
          see it.

          This is the part that you can move around the document:

           <!-- datestamp:begin -->Move this line where date/time label should appear<!-- datestamp:end -->
          

          Chami

          • bill, 11th Feb 2012 8:32 am

            On 2/9/2012 9:48 AM, HTML-Kit Support wrote:

            On 2/9/2012 8:20 AM, bill wrote:

            On 2/9/2012 9:05 AM, HTML-Kit Support wrote:

            Hi Bill,

            On 2/9/2012 4:59 AM, bill wrote:

            I don't know if this is available in tools or not and am not
            sure
            enough of what I want to post this in authoring or tools:

            This is a perfectly good posting for htmlkit.treehouse :)

            I would like to have a version number incremented when saving,
            something inconspicuous like v:xxxx that is in the html so that
            when
            there is an error it is easy to find out which version of the
            page/scrip is in error.

            I suppose that inserting a date/time would be ok too:
            201202061423
            but I would prefer the 4 digit version number.

            I know I can do this manually, but when in development I save
            about
            every 2 minutes and always forget to to the increment.

            What do people think of this idea and any ideas on how to
            implement
            it ?

            bill

            HTML-Kit Tools can automatically update date/time for you when
            you save a document. You can set it up this way:

            1. Open a HTML document and place caret inside <head>...</head>
              section.

            2. Select "Edit > Extra > Insert Document Settings Block" from
              the main menu.

            3. Check "Add date/time label" and click "OK."

            Now the datestamp will automatically update when you save.

            To get a date/time-based version number like 201202061423, you
            can change datestamp format to:

            <datestamp format="yyyyMMddhhmm" />

            Hope this helps.

            Chami

            That works for the file, but even removing the comment block,
            it will
            not display because the tag <datestamp is not recognized by FF.
            I want a simple versioning number that will display on the page.
            Note: I am using AJAX to load program fragments into divs, no
            "head"
            section, but that should not matter a bit.

            You have to keep the comment block inserted in step #2 and keep
            <datestamp format="yyyyMMddhhmm" /> tag inside the comment. It's
            not meant to be exposed outside the comment so FF or any other
            browser won't see it.

            This is the part that you can move around the document:

            Move this line where date/time label
            should appear

            Chami

            That works fine, sorry for not reading the instructions well
            enough. Now let me request an enhancement:

            <C format="n:xxx" />

            or perhaps
            <numberstamp format="xxx" />

            where n: means it is a number and xxx is the number of digits.
            Then when saving the number is incremented by one.

            You could make it fancier and allow setting the number to a
            starting value, but I think that is unnecessary and could be
            handled by manually changing the number after the first save.

            BTW, it should be noted that non-format characters are preserved
            and handled correctly,e.g: "yy-MM-dd hh:mm" formats correctly.
            Great feature Chami.

            bill

            • bill, 22nd Feb 2012 5:58 am

              from 2/11/12:

              ...
              Now let me request an enhancement:
              >

              <datestmp format="n:xxx" />

              or perhaps
              <numberstamp format="xxx" />

              where n: means it is a number and xxx is the number of digits.
              Then when saving the number is incremented by one.

              You could make it fancier and allow setting the number to a
              starting value, but I think that is unnecessary and could be
              handled by manually changing the number after the first save.

              sometimes you don't reply because you have put the request in the
              queue and want to work on it before replying. Sometimes you
              don't reply because you don't see the message.

              Which is it here ?

              bill

              • HTML-Kit Support, 22nd Feb 2012 11:22 pm

                On 2/22/2012 5:58 AM, bill wrote:

                from 2/11/12:

                ...
                Now let me request an enhancement:
                >

                <datestmp format="n:xxx" />

                or perhaps
                <numberstamp format="xxx" />

                where n: means it is a number and xxx is the number of digits.
                Then when saving the number is incremented by one.

                You could make it fancier and allow setting the number to a
                starting value, but I think that is unnecessary and could be
                handled by manually changing the number after the first save.

                sometimes you don't reply because you have put the request in the queue
                and want to work on it before replying. Sometimes you don't reply
                because you don't see the message.

                Which is it here ?

                bill

                I was working on this, but stopped to think about the best format for
                this. I didn't want a quick implementation to be the default.

                So let me move this to the to-do list. If you'd like to monitor the
                status you can post this on "Help > Feedback" otherwise I'll announce it
                in the ChangeLog.

                And I'm sorry about my bad habit of waiting to reply until a request is
                implemented. Sometimes they take longer than I imagined. Sometimes I
                don't want to promise a feature without researching feasibility. So this
                reply before or after thing is something I'm not sure how best to handle.

                Chami

                • bill, 23rd Feb 2012 7:13 am

                  On 2/23/2012 12:22 AM, HTML-Kit Support wrote:

                  On 2/22/2012 5:58 AM, bill wrote:

                  from 2/11/12:

                  ...
                  Now let me request an enhancement:
                  >

                  <datestmp format="n:xxx" />

                  or perhaps
                  <numberstamp format="xxx" />

                  where n: means it is a number and xxx is the number of digits.
                  Then when saving the number is incremented by one.

                  You could make it fancier and allow setting the number to a
                  starting value, but I think that is unnecessary and could be
                  handled by manually changing the number after the first save.

                  sometimes you don't reply because you have put the request in
                  the queue
                  and want to work on it before replying. Sometimes you don't reply
                  because you don't see the message.

                  Which is it here ?

                  bill

                  I was working on this, but stopped to think about the best format
                  for this. I didn't want a quick implementation to be the default.

                  So let me move this to the to-do list. If you'd like to monitor
                  the status you can post this on "Help > Feedback" otherwise I'll
                  announce it in the ChangeLog.

                  And I'm sorry about my bad habit of waiting to reply until a
                  request is implemented. Sometimes they take longer than I
                  imagined. Sometimes I don't want to promise a feature without
                  researching feasibility. So this reply before or after thing is
                  something I'm not sure how best to handle.

                  Chami

                  Those of us that know and love you recognize your desire to "fix
                  before communicating" and are not offended. Perhaps a quick one
                  liner reply, like "good idea, I'm working on it" might suffice ?

                  here are some templates:

                  "good idea, I'm not sure it can be done, give me a few
                  weeks|months to check it out."

                  "good idea, I am working on it, give me a few weeks|months."

                  "good idea, I doubt it is possible, I'll let it rattle around in
                  my brain and announce in the changelog if it does turn out to be
                  possible."

                  "are you kidding ? That is the worst idea since Wonder Bread.
                  Don't hold your breath. On the other hand, I might change my
                  mind sometime. Check back in years|decades."

                  bill

                  • HTML-Kit Support, 23rd Feb 2012 7:51 am

                    On 2/23/2012 7:13 AM, bill wrote:

                    On 2/23/2012 12:22 AM, HTML-Kit Support wrote:

                    On 2/22/2012 5:58 AM, bill wrote:

                    from 2/11/12:

                    ...
                    Now let me request an enhancement:
                    >

                    <datestmp format="n:xxx" />

                    or perhaps
                    <numberstamp format="xxx" />

                    where n: means it is a number and xxx is the number of digits.
                    Then when saving the number is incremented by one.

                    You could make it fancier and allow setting the number to a
                    starting value, but I think that is unnecessary and could be
                    handled by manually changing the number after the first save.

                    sometimes you don't reply because you have put the request in
                    the queue
                    and want to work on it before replying. Sometimes you don't reply
                    because you don't see the message.

                    Which is it here ?

                    bill

                    I was working on this, but stopped to think about the best format
                    for this. I didn't want a quick implementation to be the default.

                    So let me move this to the to-do list. If you'd like to monitor
                    the status you can post this on "Help > Feedback" otherwise I'll
                    announce it in the ChangeLog.

                    And I'm sorry about my bad habit of waiting to reply until a
                    request is implemented. Sometimes they take longer than I
                    imagined. Sometimes I don't want to promise a feature without
                    researching feasibility. So this reply before or after thing is
                    something I'm not sure how best to handle.

                    Chami

                    Those of us that know and love you recognize your desire to "fix before
                    communicating" and are not offended. Perhaps a quick one liner reply,
                    like "good idea, I'm working on it" might suffice ?

                    here are some templates:

                    "good idea, I'm not sure it can be done, give me a few weeks|months to
                    check it out."

                    "good idea, I am working on it, give me a few weeks|months."

                    "good idea, I doubt it is possible, I'll let it rattle around in my
                    brain and announce in the changelog if it does turn out to be possible."

                    "are you kidding ? That is the worst idea since Wonder Bread. Don't hold
                    your breath. On the other hand, I might change my mind sometime. Check
                    back in years|decades."

                    bill

                    Ha ha ha! I love those templates!

                    Alright, I'll try to post a quick note if I'm working on a request
                    that's taking more than a few hours.

                    Chami

          • bill, 11th Feb 2012 12:17 pm

            On 2/9/2012 9:48 AM, HTML-Kit Support wrote:

            On 2/9/2012 8:20 AM, bill wrote:

            On 2/9/2012 9:05 AM, HTML-Kit Support wrote:

            Hi Bill,

            On 2/9/2012 4:59 AM, bill wrote:

            I don't know if this is available in tools or not and am not
            sure
            enough of what I want to post this in authoring or tools:

            This is a perfectly good posting for htmlkit.treehouse :)

            I would like to have a version number incremented when saving,
            something inconspicuous like v:xxxx that is in the html so that
            when
            there is an error it is easy to find out which version of the
            page/scrip is in error.

            I suppose that inserting a date/time would be ok too:
            201202061423
            but I would prefer the 4 digit version number.

            I know I can do this manually, but when in development I save
            about
            every 2 minutes and always forget to to the increment.

            What do people think of this idea and any ideas on how to
            implement
            it ?

            bill

            HTML-Kit Tools can automatically update date/time for you when
            you save a document. You can set it up this way:

            1. Open a HTML document and place caret inside <head>...</head>
              section.

            2. Select "Edit > Extra > Insert Document Settings Block" from
              the main menu.

            3. Check "Add date/time label" and click "OK."

            Now the datestamp will automatically update when you save.

            To get a date/time-based version number like 201202061423, you
            can change datestamp format to:

            <datestamp format="yyyyMMddhhmm" />

            Hope this helps.

            Chami

            That works for the file, but even removing the comment block,
            it will
            not display because the tag <datestamp is not recognized by FF.
            I want a simple versioning number that will display on the page.
            Note: I am using AJAX to load program fragments into divs, no
            "head"
            section, but that should not matter a bit.

            You have to keep the comment block inserted in step #2 and keep
            <datestamp format="yyyyMMddhhmm" /> tag inside the comment. It's
            not meant to be exposed outside the comment so FF or any other
            browser won't see it.

            This is the part that you can move around the document:

            Move this line where date/time label
            should appear

            Chami

            OH !
            thanks

            bill

Advertisements