| 57 | === Pan language editor == |
| 58 | |
| 59 | Add an association between `.tpl` file extension and the editor. To do this, go to Window->Preferences->General->Editors->File Associations, check if an association for .tpl already exists (it should be added by the plugin) and check if the Pan editor is the default to open `.tpl` files. |
| 60 | |
| 61 | |
| 62 | === Sunshade === |
| 63 | |
| 64 | If you have Sunshade installed inside eclipse, then you can hyperlink between errors generated by the pan compiler and the file. To do this you need to add some regular expressions to the Sunshade "Error Link" configuration. Open the Eclipse options panel (using Window->Preferences) and then navigate to the "Sunshade" and then "Error Link" pages. On this page add the following regular expressions: |
| 65 | {{{ |
| 66 | \[panc\]\s*DEPRECATED:\s+(.*)\s+\[(\d+):(\d+)\] |
| 67 | \[([^\[\]]+\.tpl)(?::(\d+)\.(\d+)-\d+\.\d+)\] |
| 68 | }}} |
| 69 | The links identified with these expressions will take you to the start of the expression causing the error. Note that the error messages give you the full range of the expression in the format "beginLine.beginChar-endLine.endChar". |
| 70 | |
| 71 | ''Note : The regexp above are intended for panc v7 and later. If you are still using panc v6 or before, you need to use a different set of regular expressions. Both can coexist.'' |
| 72 | {{{ |
| 73 | \[pan-syntax\]\s*(.*\.tpl):(\d+): |
| 74 | \[pan-compile\]\s*(.*\.tpl):(\d+) |
| 75 | \[pan-syntax\].*[\s\(](.*\.tpl) |
| 76 | }}} |
| 77 | |
| 78 | |
86 | | |
87 | | |
88 | | === Sunshade === |
89 | | |
90 | | If you have Sunshade installed inside eclipse, then you can hyperlink between errors generated by the pan compiler and the file. To do this you need to add some regular expressions to the Sunshade "Error Link" configuration. Open the Eclipse options panel (using Window->Preferences) and then navigate to the "Sunshade" and then "Error Link" pages. On this page add the following regular expressions: |
91 | | {{{ |
92 | | \[panc\]\s*DEPRECATED:\s+(.*)\s+\[(\d+):(\d+)\] |
93 | | \[([^\[\]]+\.tpl)(?::(\d+)\.(\d+)-\d+\.\d+)\] |
94 | | }}} |
95 | | The links identified with these expressions will take you to the start of the expression causing the error. Note that the error messages give you the full range of the expression in the format "beginLine.beginChar-endLine.endChar". |
96 | | |
97 | | ''Note : The regexp above are intended for panc v7 and later. If you are still using panc v6 or before, you need to use a different set of regular expressions. Both can coexist.'' |
98 | | {{{ |
99 | | \[pan-syntax\]\s*(.*\.tpl):(\d+): |
100 | | \[pan-compile\]\s*(.*\.tpl):(\d+) |
101 | | \[pan-syntax\].*[\s\(](.*\.tpl) |
102 | | }}} |