Tapatalk

Who can share an Objective-C wordfile?

Who can share an Objective-C wordfile?

3

    Feb 13, 2006#1

    I have to use this old programming language. But without pre-defined wordfile, I can't review the code with highlighting.
    Thx in advance.

    63
    Advanced UserAdvanced User
    63

      Feb 13, 2006#2

      Hi Buddhist

      First off normally you would go to page user-submitted wordfiles.

      But in this case there is no Objective-C (or I couldn't find it). So what I do in those cases is visit TextPads website www.TextPad.com
      Dig down through Download --> Add-Ons --> Syntax Definitions
      Anyway sure enough they have a syntax file for "C-Objective"
      http://www.textpad.com/add-ons/files/syntax/objc.zip

      UltraEdit wordfiles are in a different format than TextPad but keywords are keywords no matter who's editor you are using. That's the good news!

      Now roll up your sleeves, UltraEdit allows only 8 groups of keywords /C1 through /C8.
      I think I would copy and paste keywords from TextPad Objective-C into a new language definition for UltraEdit.

      One real nice feature is as soon as you save "MyWordfile.txt" you can see the results in a Objective-C program to see if this is what you want your code to look like!

      Next thing, UltraEdit help file is fantastic! Just lookup "Syntax Highlighting"

      Okay let me give you some simple steps:
      • Download  "objc.zip" from TextPad's website.
      • Find UltraEdit's  WORDFILE.TXT  maybe it's C:\Program Files\UltraEdit\WORDFILE.TXT
      • Copy WORDFILE.TXT to MYWORDFILE.TXT  (this way you have the orginal and you can play with out damaging anything.)
      • In UltraEdit goto pull down menu "Advanced" --> "Configuration.."
        click on the plus sign on "Editor Display" last one is "Syntax Highlighting"
        Change the "full path to wordlist:" to newly copied MYWORDLIST.TXT
      • Now edit MYWORDFILE.TXT, you can create a new language /L12 or higher or go over the top of /L1"C/C++"
        (remember you still have a good copy of WORDFILE.TXT)
      This should be a good start, if you have more questions just leave a message!
      Good Luck

      3

        Feb 14, 2006#3

        Thx a lot for your detailed reply

        8
        NewbieNewbie
        8

          Re: Who can share an Objective-C wordfile? testing result

          Feb 16, 2007#4

          Thank you both for introducing the topic and providing the nice solution.
          I followed the instruction as I can and get the partial success:

          code like

          @implementation
          @end
          @class

          are not highlighted as expected (see attached image from an objC IDE.

          also, string literal in ObjC is of the form

          @"This is a string"

          But the highlighting in UE does not including the leading "@" as
          expected,

          Other than that, things work pretty well already.

          I'm putting the testing code, hightling samples, my wordfile and the objc.syn here (95k)(direct attachment error. maybe zip is not allowed)

          http://www.elinkage.net/objc_wordfile.zip

          Please help to see what's I'm missing. Thanks a lot.

          6,685587
          Grand MasterGrand Master
          6,685587

            Feb 16, 2007#5

            Following is copied from syntax highlighting help of UE v13.00 Beta 2:
            String Literal Prefix

            UltraEdit supports specification of the string literal format by specifying a string prefix character in the language definition line. For example, in C# .NET 2.0, the string literal prefix would be defined as follows:

            String Literal Prefix = @

            In this case, the @ before a string literal indicates that a backslash is not an escape character which is really useful for entering path literals. To illustrate, the following two statements are equivalent:

               "c:\\data\\"
               @"c:\data\"

            The only special character in a @"..." literal is the ", which is simple doubled if you want to embed one.
            So just wait a few weeks till v13.00 of UltraEdit is released.
            Best regards from an UC/UE/UES for Windows user from Austria

            3

              Mar 16, 2007#6

              Sorry for bringing up this topic again. I downloaded the wordfile defined by elim. It works.

              But there is still a little bit flaw - the methods can't be listed in FuntionList.

              How to do that?

              Thx.

              8
              NewbieNewbie
              8

                Jun 10, 2010#7

                Who have the better word file than my old one, please share. Thanks a lot