Sunday, February 20, 2011

smali syntax highlighting for notepad++

update 10/8/2013:
thanks to Ádám Tóth for creating a dark themed version. i've linked to it next to the main version.

update: 11/10/2011:
thanks to Jho for pointing out how to get code folding to work. i updated the syntax file and made a few other tweaks. the link and picture have been updated and here are the instructions for installing (tested with v5.9.6.1):
View -> User-Defined Dialogue...


Click Import


Select smali_npp.xml
       no picture here, use imagination

There will be a message box that says "Import successful."
Any new files you open should have syntax highlighting.



several people have asked for smali highlighting for notepad++. thanks to furrelkt for having already sent me an example. here's what i've come up with: https://sites.google.com/site/lohanplus/files/smali_npp.xml
for dark backgrounds, try this:  https://sites.google.com/site/lohanplus/files/smali_npp_darkbg.xml


there are many limitations for notepad++'s user defined language. i could not get many tokens to highlight correctly, or as well as ultraedit or the highlighter used on this blog. perhaps a full lexer plugin could handle it. if you write one or make improvements to this xml, let me know.

34 comments :

  1. Thank you so much for this!!!

    This is sure to be an absolute blessing on my tired eyes when spending all day digging through smali code now.

    Cheers, =)

    ReplyDelete
    Replies
    1. **SELLING SSN+DOB FULLZ**

      CONTACT
      Telegram > @leadsupplier
      ICQ > 752822040
      Email > leads.sellers1212@gmail.com

      >>1$ each without DL/ID number
      >>2$ each with DL
      >>5$ each for premium (also included relative info)

      *Will reduce price if buying in bulk
      *Hope for a long term business

      FORMAT OF LEADS/FULLZ/PROS

      ->FULL NAME
      ->SSN
      ->DATE OF BIRTH
      ->DRIVING LICENSE NUMBER WITH EXPIRY DATE
      ->COMPLETE ADDRESS
      ->PHONE NUMBER, EMAIL, I.P ADDRESS
      ->EMPLOYMENT DETAILS
      ->REALTIONSHIP DETAILS
      ->MORTGAGE INFO
      ->BANK ACCOUNT DETAILS

      >Fresh Leads for tax returns & w-2 form filling
      >Payment mode BTC, ETH, LTC, PayPal, USDT & PERFECT MONEY

      ''OTHER GADGETS PROVIDING''

      >SSN+DOB Fullz
      >CC with CVV
      >Photo ID's
      >Dead Fullz
      >Spamming Tutorials
      >Carding Tutorials
      >Hacking Tutorials
      >SMTP Linux Root
      >DUMPS with pins track 1 and 2
      >Sock Tools
      >Server I.P's
      >HQ Emails with passwords

      Email > leads.sellers1212@gmail.com
      Telegram > @leadsupplier
      ICQ > 752822040

      THANK YOU

      Delete
  2. U are just an asshole u know? just little crapy asshole. your blog sucks, you suck and all your life sucks too. people like me work many days to leave from android apps and what do you? hey asshole, think about your lifetime

    ReplyDelete
  3. @Anonymous: i'd like to help, but i am not sure what the problem is.

    ReplyDelete
  4. Lohan check your email please.

    ReplyDelete
  5. Thank you!

    Here a highlighting file for Vim
    http://codetastrophe.com/smali.vim

    ReplyDelete
  6. ah very good jon! do you mind if i make a post linking to this? i have been working on my own, but yours is more fleshed out. we even named several things exactly the same. the only thing i could think to add is code folding (ex: '.method' -> '.end method')

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. @Anonymous:

    Not everyone uses this information to "crack" apps. In fact, most I know use it to tweak and customize system files.

    @lohan:
    Install instructions please? I can't seem to get Notepad++ to actually use this file. I've tried import style theme, i've tried copying the file into the notepad++ folder along with the other themes, everything... I just CANNOT get it to actually use it.

    ReplyDelete
  9. aelfwyne, i do not actually use (or like) notepad++. have you tried moving userDefineLang.xml to %APPDATA%\Notepad++\ ? this intolerably weird handling of highlighting is just one of the reasons i don't care much for it.

    ReplyDelete
  10. doesn't work for notepad++ 5
    (notepad++ 5 hangs out )

    ReplyDelete
  11. If you add these lines:

    <Keywords name="Folder+">.method .annotation</Keywords>
    <Keywords name="Folder-">.end\ method .end\ annotation</Keywords>

    and remove all the keywords found here (.method, .annotation, etc) from the other lists, then code block collapsing works

    ReplyDelete
  12. thanks Jho. everything updated and much appreciated.

    ReplyDelete
  13. Still does not work on Notepad++... Import gives no errors but there is NO hiliting at all. Why is it so difficult to actually make something that works?

    ReplyDelete
  14. @Anonymous:
    1) i have no idea what "hiliting" is. is it a sport? is it good or bad that there is none of it?

    2) if it does not work, then i'm very, very curious as to how i was able to get those screen shots. what a mystery, indeed!!

    3) your last question seems to be more of a philosophical / personal crisis that i can't help you with.

    i'd be more helpful if you didn't come off sounding like an ass.

    ReplyDelete
  15. is there any way to remove ads from apk file ?
    Thanks !

    ReplyDelete
  16. Notepad++ highlighting doesn't work after "\"" in a smali file. Maybe it thinks everything thereafter is a string. Can we avoid it ?

    ReplyDelete
    Replies
    1. 1. Run Notepad
      2. Import user defined language from this topic
      3. Language > Define your language..
      4. Select Smali
      5. Operators
      5. Delimeters 2 > Escape
      6. Write \
      7. Close.
      8. Sucess

      Delete
    2. Thanks. It worked.

      Delete
  17. Well, for me it works perfect! Thanks! :)

    ReplyDelete
  18. I've modified your highlight to create a highlight that works better with dark themes..
    https://dl.dropboxusercontent.com/u/52395293/smali_npp_darkbg.xml
    you can change to a dark theme in Settings\Style Configurator...

    ReplyDelete
  19. thank you for sharing this!

    ReplyDelete
  20. When I click on view in notepad++ there is no "user defined dialog" option to select. Do I need to enable something in Notepad++ for this option to show?

    ReplyDelete
    Replies
    1. Its updated. Go to language> define you own
      there click import
      then go to language> user defined
      and its done

      Delete
  21. Thank you so much for the great and very beneficial stuff that you have shared with the world.

    ReplyDelete
  22. **SELLING SSN+DOB FULLZ**

    CONTACT
    Telegram > @leadsupplier
    ICQ > 752822040
    Email > leads.sellers1212@gmail.com

    >>1$ each without DL/ID number
    >>2$ each with DL
    >>5$ each for premium (also included relative info)

    *Will reduce price if buying in bulk
    *Hope for a long term business

    FORMAT OF LEADS/FULLZ/PROS

    ->FULL NAME
    ->SSN
    ->DATE OF BIRTH
    ->DRIVING LICENSE NUMBER WITH EXPIRY DATE
    ->COMPLETE ADDRESS
    ->PHONE NUMBER, EMAIL, I.P ADDRESS
    ->EMPLOYMENT DETAILS
    ->REALTIONSHIP DETAILS
    ->MORTGAGE INFO
    ->BANK ACCOUNT DETAILS

    >Fresh Leads for tax returns & w-2 form filling
    >Payment mode BTC, ETH, LTC, PayPal, USDT & PERFECT MONEY

    ''OTHER GADGETS PROVIDING''

    >SSN+DOB Fullz
    >CC with CVV
    >Photo ID's
    >Dead Fullz
    >Spamming Tutorials
    >Carding Tutorials
    >Hacking Tutorials
    >SMTP Linux Root
    >DUMPS with pins track 1 and 2
    >Sock Tools
    >Server I.P's
    >HQ Emails with passwords

    Email > leads.sellers1212@gmail.com
    Telegram > @leadsupplier
    ICQ > 752822040

    THANK YOU

    ReplyDelete
  23. I appreciate your critical thinking. Great job! 파친코

    ReplyDelete


  24. Are you in Need of Fresh High Balance CC for carding
    Good Dumps Number, Track 101 and 201
    Scan Driver liscense Front and Back
    Fullz with SSN and DOB
    Bank open up and debit card send to you
    Cashout Method and Lots of Tutorrial
    And Those That Have Bank Drop for Mobile Deposit Can Come in
    Hit me up for Fast Business Deal

    Icq chat- 746825067
    Telegram- @EmpireMarketVendor


    ReplyDelete
  25. https://gamezoom.xyz Acquiring a workout partner can significantly increase your muscle mass-developing outcomes. Your partner can be a important source of determination for sticking with your regular workout program, and forcing you to definitely improve your attempts whilst you exercise. Developing a trustworthy spouse to determine with will also help keep you safe since you will invariably use a spotter.

    ReplyDelete
  26. Bon site internet : lambang
    Bon site internet : Resep Masakan
    Bon site internet : Sinopsis Film Terbaru
    Bon site internet : Zonahobisaya
    Bon site internet : Zonahobisaya
    Bon site internet : Zonahobisaya
    Bon site internet : Zonahobisaya
    Bon site internet : Zonahobisaya

    ReplyDelete
  27. تقدم شركة كلينر خدمات التنظيف في الرياض خدمات متنوعة وعالية الجودة شركة تنظيف بالرياض

    ReplyDelete

Do NOT post about or link to specific apps!