Welcome guest, is this your first visit? Create Account now to join.
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
Like Tree1Likes

This is a discussion on Manifest Syntax Highlighting within the Plugins Development section, part of the Chrome Plugins category: I've made Syntax Highlighting files for both Notepad++ and gedit. For Notepad++ download userDefineLang.xml If you do not have any ...


  1. #1
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default Manifest Syntax Highlighting

    I've made Syntax Highlighting files for both Notepad++ and gedit.

    For Notepad++ download userDefineLang.xml
    If you do not have any custom languages installed, unzip it to your base Notepad++ directory. By default this is C:\Program Files\Notepad++
    If you have installed one before, open both userDefinedLang.xml files and paste from
    Code:
    <UserLang name="Chrome Ext Def" ext="json">
    to
    Code:
    </UserLang>
    before the
    Code:
    </NotepadPlus>
    line in the xml file in the Notepad++ directory.

    For gedit download chromemanif.lang and x-chrome-ext-manifest.xml. I have no idea how gedit works on Windows, so I can't really guide you on that. Sorry. :S
    But on Ubuntu, move x-chrome-ext-manifest.xml to ~/.local/share/mime/packages and run this command:
    Code:
    update-mime-database ~/.local/share/mime/packages
    Then copy or move chromemanif.lang to /usr/share/gtksourceview-2.0/language-specs

    If you have snippets extension installed in gedit, you can download [url=http://logicplace.com/pc/projects/chrome/manifest/gedit%20-%20Chrome%20Manifest%20-%20Snippits.tar.gz[/url] and import that into your snippets collection.

    Of course with both you'll have to restart the editor!

    Enjoy. :] Snippets make manifest making soo fast. <3

    EDIT: For those curious, or wanting to make a highlighting file of their own for another editor, you can check out the spec here. I didn't add all the theme possibilities cause I was lazy, but you can get them from the links in there. (Prepending them with this.)

    Update Feb. 24, 2010: Updated to reflect the current manifest spec entirely. (As of the trunk build around this day.)
    Last edited by Waha; 02-25-2010 at 05:03 AM.
    sith likes this.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  2. #2
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    What a great idea, thanks for sharing.
    Im gonna see if I can use what you supplied to add .json highlighting (with manifests in mind) for RJTextEd (windows only...http://www.rj-texted.se/).

  3. #3
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Go for it. :] I just followed this, this, and this.
    Last edited by Waha; 02-19-2010 at 09:20 AM. Reason: Adjusted third link to a more relevant one.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  4. #4
    Jedi Knight's Avatar
    Jedi Knight is offline Theme Developer
    Join Date
    Jul 2009
    Posts
    400

    Default

    This sounds great, but I can't seem to figure it out.
    I unzipped userDefineLang.xml it to my Notepad++ directory, but what's next?
    I restarted Notepad++, but no Syntax Highlighting.
    Do I need to apply it somehow.

    Sorry, I've never played with the settings in notepad++.
    Default settings have been all I've ever needed. lol.

  5. #5
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    When I added it to Notepad++ it wouldnt switch to json highlighting staight away like it should and I have no idea why.
    So after you load in ya manifest click on Language and pick Chrome Ext Def and it should work.

    Love this Waha, just finished doing it for RJTextEd....even added your code snippets although its nowhere near as powerfull as the snippet thing your using (never used it but I can tell from the file it would be good).
    And you want this JK, the difference it makes is HUGE.

    Heres what a theme manifest looks like in RJTextEd...

    Ill up the RJTextEd ones after I sort out how to
    manifesthighlighting.jpg

    OH and Waha, in List Two you forgot..."icon" "16" "32" "64"

  6. #6
    Jedi Knight's Avatar
    Jedi Knight is offline Theme Developer
    Join Date
    Jul 2009
    Posts
    400

    Default

    I checked the Language tab before making my earlier post.
    Chrome Ext Def isn't listed.
    And the only tab open was a manifest.json file.
    Maybe It doesn't work with my version of Notepad++.
    I'm using v5.1.4.

  7. #7
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    Hmmm not sure, Ive got 5.0 portable.
    Ill try downloading a newer version, install it and get back to you.

    EDIT:
    OK, figured what it is.
    When you installed it it used the %APPDATA%\Notepad++\ directory to store your settings and syntax files (portable version stores everything in the notepad directory), so you need to put your file there.
    On XP for me (user=Admin) the directory is....
    C:\Documents and Settings\Admin\Application Data\Notepad++
    ...you need to put the file in there
    Hope it works for you

    EDITEDIT: If your not sure what your %APPDATA% directory is then do this....
    Click on Start, Click Run, Enter this %APPDATA%\Notepad++\ ,Press Enter
    Last edited by PAEz; 02-15-2010 at 06:30 AM.

  8. #8
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Sorry about that, I seem to have Notepad++ 4.9.2.. I'll update sometime and update the syntax file. >< Auto selecting by the extension works in my version so it should work when I update that.
    And PAEz, link your file for RJTextEd! :]

    And on a side note, looking at the last source file I linked it seemed like there was something extra I missed I'll have to add too. So expect and update sometime soon.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  9. #9
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    Sorry for the late reply but I was hopeing to get this on the download list for RJTextEd and I did but I listed as JSON and was waiting for it to be changed, so the delay is due to my incompetence.

    How to add Chrome Manifest highlighting to RJTextEdit http://www.rj-texted.se
    Click the Environment menu
    Select Add-ons...
    Click Highlighters
    Click Download from web
    Scroll down and check ChromeManifest
    Click Download
    Under Available highlighters scroll down and click ChromeManifest
    Click Activate

    To make this activate everytime you open a json file add json to the File Extensions on the right.

    Thanks again to Rickard Johansson (the author of RJTextED) for the quick responses and putting up with my incompetence .
    And thanks to Waha for the word lists and snippets, I wouldnt have done it without them.
    Last edited by PAEz; 02-15-2010 at 04:47 PM.

  10. #10
    Jedi Knight's Avatar
    Jedi Knight is offline Theme Developer
    Join Date
    Jul 2009
    Posts
    400

    Default

    Quote Originally Posted by PAEz View Post
    OK, figured what it is.
    When you installed it it used the %APPDATA%\Notepad++\ directory to store your settings and syntax files (portable version stores everything in the notepad directory), so you need to put your file there.
    On XP for me (user=Admin) the directory is....
    C:\Documents and Settings\Admin\Application Data\Notepad++
    ...you need to put the file in there
    Hope it works for you
    Now I feel like a complete idiot for not thinking of that to begin with.
    Thanks to the both of you, it is working and it is COOL!
    Awesome work.

    I would like to add this info to my wiki at my site.
    Would that be OK?

Page 1 of 3 123 LastLast

Similar Threads

  1. Q: RE: theme manifest.json file required elements
    By jstalnak in forum Themes Development
    Replies: 9
    Last Post: 03-02-2010, 03:38 PM
  2. How do you display version inside manifest
    By twinsen in forum Plugins Development
    Replies: 2
    Last Post: 08-16-2009, 11:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •