See the top rated post in this thread. Click here

Results 1 to 6 of 6

Thread: Notepad++ Language formatting by file extension

  1. #1
    Mod / Salary / SM Wanderer's Avatar
    Join Date
    2001-12
    Location
    St. Louis
    Posts
    5,127


    Default Notepad++ Language formatting by file extension

    So, I'm using Notepad++ to edit.

    I have a friend who told me that there's a way to have the program turn on specific language formatting when opening certain filetypes. Say, I've got files with extension .axvw and the majority of the time, I'm going to want to view them with the XML Language formatting turned on, so I'd like to automatically associate that.

    He couldn't remember how to do it, though, and I haven't been able to puzzle it out myself.

    Bueller?
    not all those who wander are lost
    (missing MEP/FP and Revit)

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    8,203


    1 members found this post helpful.

    Default Re: Notepad++ Language formatting by file extension

    Try Settings -> Style Configurator

    Then find XML in the Language list and select it. In the lower left corner there are two text boxes. In the User ext. box, add your file extension.

    Let me know if that works.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Mod / Salary / SM Wanderer's Avatar
    Join Date
    2001-12
    Location
    St. Louis
    Posts
    5,127


    Default Re: Notepad++ Language formatting by file extension

    Quote Originally Posted by Opie View Post
    Try Settings -> Style Configurator

    Then find XML in the Language list and select it. In the lower left corner there are two text boxes. In the User ext. box, add your file extension.

    Let me know if that works.
    I'll try it first thing tomorrow! Thanks.
    not all those who wander are lost
    (missing MEP/FP and Revit)

  4. #4
    Programming Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,114


    1 members found this post helpful.

    Default Re: Notepad++ Language formatting by file extension

    Quote Originally Posted by Opie View Post
    Try Settings -> Style Configurator

    Then find XML in the Language list and select it. In the lower left corner there are two text boxes. In the User ext. box, add your file extension.
    1+

    You can also manually edit (presumably with Notepad++ ):

    Code:
    %AppData%\Notepad++\stylers.xml
    "Potential has a shelf life." - Margaret Atwood
    AutoCAD, and Civil 3D Certified Professional | Autodesk Authorized Developer
    Sincpac C3D ~ Autodesk Exchange Apps

  5. #5
    Mod / Salary / SM Wanderer's Avatar
    Join Date
    2001-12
    Location
    St. Louis
    Posts
    5,127


    Default Re: Notepad++ Language formatting by file extension

    Quote Originally Posted by BlackBox View Post
    1+

    You can also manually edit (presumably with Notepad++ ):

    Code:
    %AppData%\Notepad++\stylers.xml
    Haha, there's a practical solution, too!

    Thanks, Richard, it worked just how you said.
    not all those who wander are lost
    (missing MEP/FP and Revit)

  6. #6
    Programming Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,114


    Default Re: Notepad++ Language formatting by file extension

    Quote Originally Posted by Wanderer View Post
    Haha, there's a practical solution, too!
    ... What's life without a bit of levity.
    "Potential has a shelf life." - Margaret Atwood
    AutoCAD, and Civil 3D Certified Professional | Autodesk Authorized Developer
    Sincpac C3D ~ Autodesk Exchange Apps

Similar Threads

  1. C.S.V. file formatting
    By j_starko in forum Revit Architecture - General
    Replies: 5
    Last Post: 2007-09-19, 09:33 PM
  2. File extension problem
    By harkeychad in forum Revit Architecture - General
    Replies: 3
    Last Post: 2006-10-06, 03:34 PM
  3. .pcp file extension.
    By boofredlay in forum Revit Architecture - General
    Replies: 2
    Last Post: 2006-09-07, 03:13 PM
  4. .SID File Extension
    By michael.hoey in forum Land Desktop - General
    Replies: 2
    Last Post: 2004-08-19, 03:58 PM
  5. Don't know the File Extension?
    By Wanderer in forum Software
    Replies: 0
    Last Post: 2004-07-26, 12:54 PM

Posting Permissions

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