rejetto forum

Macros

Mars · 231 · 128277

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Oh u mean the template will be read from the external file finally?

something like that

Quote
If that is the case, I might make a user defined one for notepad++ and post it on the forum... one that shows sections, symbols, and macro's.

it would be great


jack_2000

  • Guest
Once we solidify the syntax i may make one for Edit++ too.
But, i'm gonna need the full syntax reference in a list.


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
Just look in the wiki, they should all be there.


Offline Unknown8063

  • Occasional poster
  • *
    • Posts: 96
    • View Profile
Oh u mean the template will be read from the external file finally? If that is the case, I might make a user defined one for notepad++ and post it on the forum... one that shows sections, symbols, and macro's.

I would really enjoy this, Notepad++ is my editor of choice :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
The syntax is easy
macros: {{macroname|parameter|parameter}}
macro quoting: {{\ any macro /}}
and %symbols%

nothing else


Offline Unknown8063

  • Occasional poster
  • *
    • Posts: 96
    • View Profile
The syntax is easy
macros: {{macroname|parameter|parameter}}
macro quoting: {{\ any macro /}}
and %symbols%

nothing else

and [section]


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
right! but only if [section] is at the very beginning of the line


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
I noticed that a FOR macro has been documented in the wiki, is this coming the the next build? And could an example for it please be posted because I don't understand how we include the condition for it to keep looping.



I think I figured the syntax out but it isnt working correctly, The variable defined in parameter A only returns the number of loops that are going to be executed.
eg, the following loop created the output in the screenshot.

Code: [Select]
{{for|A|1|8|<input name="poll" type="radio" value="{{^A}}" /><label>{{!Option {{^A}}}}</label><br />}}
I had a look in the whats new list for the beta's and didnt see the FOR macro mentioned, is it still being coded/bugs being fixed before announcing it?
« Last Edit: December 23, 2007, 10:59:24 AM by Foggy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it's in the what's new of #164.
it doesn't work because you are not using the macro quoting.
I put a reminder in the wiki.


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
oh ok, I'll try it with the quoting. I went and had another look and didn't see it mentioned in the whats new for build 164. ???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Quote from: what's new
+ new template macro: <> != for time filename


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile

Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
When you use append where does the file get saved when you only specify a name? eg {{append|file.txt|text}}

can you use server relative paths? eg {{append|/folder/file.txt|text}}

etc


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
the hfs.exe folder is used as default.
/folder is not very relative.... it's absolute in the same drive unit.
folder/ is relative, or ../folder/


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
the hfs.exe folder is used as default.
/folder is not very relative.... it's absolute in the same drive unit.
folder/ is relative, or ../folder/

Thankyou, it might  be a good idea to add that the hfs.exe directory is used as default.