0

When running Kate snippets, I do not know how to use the date variable in a snippet. When I am trying to create a personal snippet where the current date can be inserted such as

Snippet #A-1
<!--Edit by Julien
    Date:
    Change Description:
-->

Kate snippets returns

<!--Edit by Julien
    Date:
    Change Description:
-->

instead of the following desired output #A-2 below.

Snippet A-2
<!--Edit by Julien
    2019-04-07 23:19:11:
    Change Description:
-->

Screenshots https://i.imgur.com/3Hc1rI3.jpg enter image description here

  • 1) Presumably you talking about Kate Snippets (not KDE snippets)? (2) What are "output #A-1" and "output #A-2"? (3) Please summarise the contents of the video here, in text. We don't really want to watch you type! Summarising it here also prevents against link rot, is better for screen readers, etc. – Sparhawk Apr 8 '19 at 8:15
  • 1) Yes - it is Kate Snippets 2a) Output #A-1 is what I am entering as a Kate code snippet. <!--Edit by Julien Date Change Description: --> 2b) Output #A-2 is the desired output based on a using a date variable to insert the current date and time. So I am entering #A-1, to get the desired outcome style of A-2 '<!--Edit by Julien 2019-04-07 23:19:11 Change Description: -->' 3) Yes, I apologize I am new here and good manners are lacking. – Julien Tremblay McLellan Apr 8 '19 at 18:50
  • No worries at all. That looks much better now. Welcome to U/L! I don't have much experience with Kate, but hopefully someone else can help you. If you get nothing useful here, you can always try the KDE forums, where people are generally quite helpful! – Sparhawk Apr 8 '19 at 22:53
  • Yeah I posted in KDE forums too, might have better luck there. I will update the question once I get a solution. Thank you for your help! – Julien Tremblay McLellan Apr 9 '19 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.