Skip to content

Commit 1c8fa69

Browse files
committed
Fix code completion problem for code templates #26
1 parent ae8a418 commit 1c8fa69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/org/netbeans/modules/php/wordpress/resources/org-netbeans-modules-phpeditor-snippets.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Portions Copyrighted 2013 Sun Microsystems, Inc.
4343

4444
<!DOCTYPE codetemplates PUBLIC "-//NetBeans//DTD Editor Code Templates settings 1.0//EN" "http://www.netbeans.org/dtds/EditorCodeTemplates-1_0.dtd">
4545
<codetemplates>
46-
<codetemplate abbreviation="wpph" xml:space="preserve">
46+
<codetemplate contexts="wp-code" abbreviation="wpph">
4747
<code><![CDATA[/*
4848
Plugin Name: ${name}
4949
Plugin URI: http://${url}/
@@ -56,7 +56,7 @@ License: ${GPLv2}
5656
${cursor}]]></code>
5757
<description>WordPress Snippet wordpress plugin header</description>
5858
</codetemplate>
59-
<codetemplate abbreviation="wpgpl" xml:space="preserve">
59+
<codetemplate contexts="wp-code" abbreviation="wpgpl">
6060
<code><![CDATA[/* Copyright ${year} ${author_name} (email : ${email})
6161
6262
This program is free software; you can redistribute it and/or modify

0 commit comments

Comments
 (0)