Translations:Plugin:NimContact/37/en

From Miranda NG
Jump to navigation Jump to search

line(...) — very similar to start() and end() with some slight changes. line(X) where X is a number, string in "" marks, or lastline(...)

  • If X is a number then the rest of the start() or end() or wholeline() will use the Xth line of the file (remember 0 is the first line).
  • If X is a string it will search through the file (starting from the first line if in start() or wholeline() OR the line used by start() if in end() and will use the first line with the string if it is found.
  • You can add a +Y or -Y after the closing ) to go Y lines up (- sign) or down (+ sign) from the line found (e.g. ...line("hello")+5... will find the word hello and use the 5th line after it).
  • If X is lastline(Y) then it will use the line Y lines up from the last line of the file. (e.g 0 or blank is the very last line of the file, 1 is the 2nd last line)