Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update comments and readme

  • Loading branch information...
commit 7687b9cab4511b6d980d68daccc7ed6f27c10e16 1 parent e7bba28
Franck Marcia authored June 05, 2010
6  README.md
Source Rendered
@@ -7,18 +7,18 @@ This plugin fully integrates [Zen Coding](http://code.google.com/p/zen-coding/)
7 7
 - Expand incrementally with abbreviation (*)
8 8
 - Wrap incrementally with abbreviation (*)
9 9
 - Zenify (reduce to abbreviation) (**)
  10
+- Insert incrementally 'lorem ipsum' words or sentences, or random letters (***)
10 11
 - Select inward or outward (**)
11  
-- Merge lines
12 12
 - Go to previous or next html tag (**)
13 13
 - Go to previous or next html node (**)
14 14
 - Go to previous or next edit point
15 15
 - Update tag image size
16 16
 - Toggle between image url and data
  17
+- Merge lines
17 18
 - Remove tag
18 19
 - Split or join tags
19 20
 - Toggle comment
20 21
 - Create your own abbreviations and snippets
21  
-- Insert incrementally 'lorem ipsum' words or sentences, or random letters (***)
22 22
 
23 23
 (*) use snippets when available
24 24
 
@@ -26,8 +26,6 @@ This plugin fully integrates [Zen Coding](http://code.google.com/p/zen-coding/)
26 26
 
27 27
 (***) see [lorem_ipsum.py](http://github.com/fmarcia/zen-coding-gedit/blob/master/zencoding/lorem_ipsum.py) for usage
28 28
 
29  
-These actions are available using keyboard shortcuts and menu items.
30  
-
31 29
 Installation
32 30
 ------------
33 31
 
31  zencoding/html_navigation.py
... ...
@@ -1,26 +1,19 @@
1  
-#  Html Navigation for Gedit
  1
+# Zen Coding for Gedit
2 2
 #
3  
-#  Copyright (C) 2010 Franck Marcia
  3
+# Copyright (C) 2010 Franck Marcia
4 4
 #
5  
-#  This program is free software: you can redistribute it and/or modify
6  
-#  it under the terms of the GNU General Public License as published by
7  
-#  the Free Software Foundation, either version 3 of the License, or
8  
-#  (at your option) any later version.
  5
+# This program is free software: you can redistribute it and/or modify
  6
+# it under the terms of the GNU General Public License as published by
  7
+# the Free Software Foundation, either version 3 of the License, or
  8
+# (at your option) any later version.
9 9
 #
10  
-#  This program is distributed in the hope that it will be useful,
11  
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  
-#  GNU General Public License for more details.
  10
+# This program is distributed in the hope that it will be useful,
  11
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13
+# GNU General Public License for more details.
14 14
 #
15  
-#  You should have received a copy of the GNU General Public License
16  
-#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  
-
18  
-'''
19  
-Parse HTML content to navigate through its nodes
20  
-
21  
-@author Franck Marcia (franck.marcia@gmail.com)
22  
-@link http://github.com/fmarcia/zen-coding-gedit
23  
-'''
  15
+# You should have received a copy of the GNU General Public License
  16
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24 17
 
25 18
 import re
26 19
 
25  zencoding/lorem_ipsum.py
... ...
@@ -1,19 +1,19 @@
1  
-#  Lorem Ipsum Generator for Gedit
  1
+# Zen Coding for Gedit
2 2
 #
3  
-#  Copyright (C) 2010 Franck Marcia
  3
+# Copyright (C) 2010 Franck Marcia
4 4
 #
5  
-#  This program is free software: you can redistribute it and/or modify
6  
-#  it under the terms of the GNU General Public License as published by
7  
-#  the Free Software Foundation, either version 3 of the License, or
8  
-#  (at your option) any later version.
  5
+# This program is free software: you can redistribute it and/or modify
  6
+# it under the terms of the GNU General Public License as published by
  7
+# the Free Software Foundation, either version 3 of the License, or
  8
+# (at your option) any later version.
9 9
 #
10  
-#  This program is distributed in the hope that it will be useful,
11  
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  
-#  GNU General Public License for more details.
  10
+# This program is distributed in the hope that it will be useful,
  11
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13
+# GNU General Public License for more details.
14 14
 #
15  
-#  You should have received a copy of the GNU General Public License
16  
-#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  15
+# You should have received a copy of the GNU General Public License
  16
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
 
18 18
 '''
19 19
 Parse a request and return 'lorem ipsum' string accordingly
@@ -282,3 +282,4 @@ def echo(x):
282 282
 	echo('st 7 4 6')
283 283
 	echo('lu 3 2 6')
284 284
 	echo('l 7*5')
  285
+
2  zencoding/zen_actions.py
@@ -248,7 +248,7 @@ def find_new_edit_point(editor, inc=1, offset=0):
248 248
 	"""
249 249
 	cur_point = editor.get_caret_pos() + offset
250 250
 	content = editor.get_content()
251  
-	syntax = editor.get_syntax()
  251
+	syntax = editor.get_syntax() # (FM) needed to differentiate CSS
252 252
 	max_len = len(content)
253 253
 	next_point = -1
254 254
 	re_empty_line = r'^\s+$'
4  zencoding/zen_core.py
@@ -234,7 +234,7 @@ def get_elements_collection(resource, type):
234 234
 	else:
235 235
 		return {}
236 236
 	
237  
-def replace_variables(text): # (FM) allow dynamic variables
  237
+def replace_variables(text): # (FM) use dynamic variables
238 238
 	"""
239 239
 	Replace variables like ${var} in string
240 240
 	@param text: str
@@ -264,7 +264,7 @@ def get_snippet(res_type, snippet_name):
264 264
 	"""
265 265
 	return get_settings_resource(res_type, snippet_name, 'snippets');
266 266
 
267  
-def get_variable(name): # (FM) allow dynamic variables
  267
+def get_variable(name): # (FM) variable can be missing
268 268
 	"""
269 269
 	Returns variable value
270 270
 	 @return: str
22  zencoding/zen_dialog.py
... ...
@@ -1,9 +1,19 @@
1  
-'''
2  
-Dialog windows used with "Wrap abbreviation" with and "Expand with abbreviation" actions
3  
-
4  
-@author Franck Marcia (franck.marcia@gmail.com)
5  
-@link http://github.com/fmarcia/zen-coding-gedit
6  
-'''
  1
+# Zen Coding for Gedit
  2
+#
  3
+# Copyright (C) 2010 Franck Marcia
  4
+#
  5
+# This program is free software: you can redistribute it and/or modify
  6
+# it under the terms of the GNU General Public License as published by
  7
+# the Free Software Foundation, either version 3 of the License, or
  8
+# (at your option) any later version.
  9
+#
  10
+# This program is distributed in the hope that it will be useful,
  11
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13
+# GNU General Public License for more details.
  14
+#
  15
+# You should have received a copy of the GNU General Public License
  16
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
7 17
 
8 18
 import pygtk
9 19
 pygtk.require('2.0')
2  zencoding/zen_file.py
@@ -16,7 +16,7 @@ def read(path):
16 16
 	fp.close()
17 17
 	return content
18 18
 
19  
-def locate_file(editor_file, file_name):
  19
+def locate_file(editor_file, file_name): # (FM) infinite loop fix
20 20
 	"""
21 21
 	Locate <code>file_name</code> file that relates to <code>editor_file</code>.
22 22
 	File name may be absolute or relative path

0 notes on commit 7687b9c

Please sign in to comment.
Something went wrong with that request. Please try again.