Difference between revisions of "Developer Tips"

From Dreamwidth Notes
Jump to: navigation, search
(line numbering)
Line 13: Line 13:
 
In .bml files, if you get an error message with a line number, the line numbering starts from the beginning of the code block, not from the beginning of the file.
 
In .bml files, if you get an error message with a line number, the line numbering starts from the beginning of the code block, not from the beginning of the file.
  
 +
{{MoreInfo}}
 
[[Category: Development]]
 
[[Category: Development]]

Revision as of 14:48, 8 November 2009

Showing Whitespace

Dreamwidth does not want tabs or trailing whitespace, as per the Dev Programming Guidelines. These two tips can help you check out your patch before submission for these flaws.

In vim, you can show whitespace with the command

:set list

You can also use cat -et.

Error Messages

In .bml files, if you get an error message with a line number, the line numbering starts from the beginning of the code block, not from the beginning of the file.

This article could really use expansion. If you have information to add, please edit this page!